#B040CE

Closest named color: Medium Orchid (#BA55D3). oklch(58.6% 0.221 318.3), rgb(176, 64, 206).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (59%)
Chromavivid (0.221)
Temperaturein between
Nearest nameMedium Orchid (#BA55D3)
Black text4.47:1
White text4.69:1

Values

HEX#B040CE
RGBrgb(176, 64, 206)
HSLhsl(287, 59%, 53%)
OKLCHoklch(58.6% 0.221 318.3)

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 #B040CE 4.69:1 AA Lc -77.2 Fine for body text
Black text on #B040CE 4.47:1 AA large text Lc 32.4 Non-text elements, placeholder text
#B040CE text on white 4.69:1 AA Lc 71.7 Content text, not long reading
#B040CE text on black 4.47:1 AA large text Lc -30.0 Dividers and decoration only

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

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F2E4F7

    oklch(93.6% 0.029 317.2)

  3. Step 200

    200

    #E9CEF1

    oklch(88.5% 0.055 318.4)

  4. Step 300

    300

    #DCACEA

    oklch(80.8% 0.1 318.5)

  5. Step 400

    400

    #CA7DE0

    oklch(70.7% 0.16 318.5)

  6. Step 500

    500

    #BB57D7

    oklch(63.2% 0.204 318.3)

  7. Step 600

    600 (this color)

    #B040CE

    oklch(58.6% 0.221 318.3)

  8. Step 700

    700

    #8E25A9

    oklch(49% 0.206 318.3)

  9. Step 800

    800

    #742289

    oklch(42.8% 0.171 318.5)

  10. Step 900

    900

    #5E236E

    oklch(37.8% 0.133 318.4)

  11. Step 950

    950

    #371640

    oklch(27% 0.084 318.6)

Export this scale for Tailwind in the Tailwind colors tool

#B040CE 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)#006CD20.218
Deuteranopia (no green cones)#4777CB0.188
Tritanopia (no blue cones)#AF5B820.140
Achromatopsia (no color)#7474740.223

Harmonies

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

Complementary

The opposite hue (180°).

  • #B040CE

    #B040CE

    oklch(58.6% 0.221 318.3)

  • #399300

    #399300

    oklch(58.5% 0.182 138.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B040CE

    #B040CE

    oklch(58.6% 0.221 318.3)

  • #7D58F4

    #7D58F4

    oklch(58.6% 0.222 288.5)

  • #D22892

    #D22892

    oklch(58.7% 0.222 348.4)

Open the analogous palette in the generator

Split complementary

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

  • #B040CE

    #B040CE

    oklch(58.6% 0.221 318.3)

  • #848100

    #848100

    oklch(58.7% 0.127 108.1)

  • #00926F

    #00926F

    oklch(58.6% 0.118 168.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B040CE

    #B040CE

    oklch(58.6% 0.221 318.3)

  • #A37100

    #A37100

    oklch(58.5% 0.122 78)

  • #008E92

    #008E92

    oklch(58.7% 0.1 198.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B040CE

    #B040CE

    oklch(58.6% 0.221 318.3)

  • #C45800

    #C45800

    oklch(58.7% 0.159 48.5)

  • #399300

    #399300

    oklch(58.5% 0.182 138.3)

  • #0088B2

    #0088B2

    oklch(58.6% 0.115 228.8)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

Use #B040CE 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.