#B340CA

Closest named color: Medium Orchid (#BA55D3). oklch(58.8% 0.219 320.5), rgb(179, 64, 202).

Aa

White text reads best on this color (4.66:1).

About this color

#B340CA is a medium-dark, vivid purple. In OKLCH its lightness is 59%, its chroma 0.219 and its hue 320°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Orchid (#BA55D3), ΔE 0.042 away. White text reads best on it, at 4.66:1.

Hue familyPurples
Lightnessmedium-dark (59%)
Chromavivid (0.219)
Temperaturein between
Nearest nameMedium Orchid (#BA55D3)
Black text4.50:1
White text4.66:1

Values

HEX#B340CA
RGBrgb(179, 64, 202)
HSLhsl(290, 57%, 52%)
OKLCHoklch(58.8% 0.219 320.5)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #B340CA 4.66:1 AA Lc -76.9 Fine for body text
Black text on #B340CA 4.50:1 AA Lc 32.6 Non-text elements, placeholder text
#B340CA text on white 4.66:1 AA Lc 71.5 Content text, not long reading
#B340CA text on black 4.50:1 AA Lc -30.2 Non-text elements, placeholder text

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.

  1. Step 50

    50

    #FAF3FB

    oklch(97.2% 0.013 321.9)

  2. Step 100

    100

    #F3E4F6

    oklch(93.6% 0.029 320.6)

  3. Step 200

    200

    #EACEF0

    oklch(88.5% 0.055 320.3)

  4. Step 300

    300

    #DEACE8

    oklch(80.9% 0.099 320.7)

  5. Step 400

    400

    #CC7DDC

    oklch(70.7% 0.157 320.7)

  6. Step 500

    500

    #BD56D2

    oklch(63% 0.201 320.6)

  7. Step 600

    600 (this color)

    #B340CA

    oklch(58.8% 0.219 320.5)

  8. Step 700

    700

    #9025A5

    oklch(49% 0.203 320.4)

  9. Step 800

    800

    #752286

    oklch(42.7% 0.168 320.2)

  10. Step 900

    900

    #5F236B

    oklch(37.7% 0.131 320.6)

  11. Step 950

    950

    #38163F

    oklch(27.1% 0.083 320.5)

Export this scale for Tailwind in the Tailwind colors tool

#B340CA with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#056CCE0.222
Deuteranopia (no green cones)#4D78C70.189
Tritanopia (no blue cones)#B459800.135
Achromatopsia (no color)#7474740.221

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #B340CA

    #B340CA

    oklch(58.8% 0.219 320.5)

  • #279600

    #279600

    oklch(58.8% 0.191 140.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B340CA

    #B340CA

    oklch(58.8% 0.219 320.5)

  • #8158F2

    #8158F2

    oklch(58.8% 0.219 290.3)

  • #D32A8D

    #D32A8D

    oklch(58.8% 0.219 350.6)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #B340CA

    #B340CA

    oklch(58.8% 0.219 320.5)

  • #818300

    #818300

    oklch(58.9% 0.129 110.8)

  • #009273

    #009273

    oklch(58.7% 0.115 170.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B340CA

    #B340CA

    oklch(58.8% 0.219 320.5)

  • #A17300

    #A17300

    oklch(58.7% 0.121 80.7)

  • #008E94

    #008E94

    oklch(58.8% 0.1 200.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B340CA

    #B340CA

    oklch(58.8% 0.219 320.5)

  • #C25B00

    #C25B00

    oklch(58.8% 0.155 50.5)

  • #279600

    #279600

    oklch(58.8% 0.191 140.5)

  • #0088B5

    #0088B5

    oklch(58.7% 0.118 230.6)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #B340CA, closest first.

No curated palette has a color within ΔE 0.04 of #B340CA.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #B340CA in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.