#B540B3

Closest named color: Purpley Pink (#C83CB9). oklch(57.7% 0.201 328.5), rgb(181, 64, 179).

Aa

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

About this color

#B540B3 is a medium-dark, vivid purple. In OKLCH its lightness is 58%, its chroma 0.201 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purpley Pink (#C83CB9), ΔE 0.037 away. White text reads best on it, at 4.82:1.

Hue familyPurples
Lightnessmedium-dark (58%)
Chromavivid (0.201)
Temperaturein between
Nearest namePurpley Pink (#C83CB9)
Black text4.34:1
White text4.82:1

Values

HEX#B540B3
RGBrgb(181, 64, 179)
HSLhsl(301, 48%, 48%)
OKLCHoklch(57.7% 0.201 328.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 #B540B3 4.82:1 AA Lc -78.1 Fine for body text
Black text on #B540B3 4.34:1 AA large text Lc 31.5 Non-text elements, placeholder text
#B540B3 text on white 4.82:1 AA Lc 72.6 Content text, not long reading
#B540B3 text on black 4.34:1 AA large text Lc -29.1 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

    #FAF3FA

    oklch(97.2% 0.012 325.7)

  2. Step 100

    100

    #F4E4F3

    oklch(93.6% 0.026 327.7)

  3. Step 200

    200

    #ECCEEA

    oklch(88.5% 0.05 328.1)

  4. Step 300

    300

    #E1ACDE

    oklch(80.9% 0.09 328.2)

  5. Step 400

    400

    #D17ECD

    oklch(70.8% 0.144 328.7)

  6. Step 500

    500

    #C358C0

    oklch(63.1% 0.185 328.6)

  7. Step 600

    600 (this color)

    #B540B3

    oklch(57.7% 0.201 328.5)

  8. Step 700

    700

    #952994

    oklch(49.1% 0.187 328.4)

  9. Step 800

    800

    #792578

    oklch(42.7% 0.154 328.4)

  10. Step 900

    900

    #622461

    oklch(37.7% 0.121 328.3)

  11. Step 950

    950

    #3A1639

    oklch(27% 0.077 328.5)

Export this scale for Tailwind in the Tailwind colors tool

#B540B3 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)#3268B60.209
Deuteranopia (no green cones)#5E77B00.179
Tritanopia (no blue cones)#BB4F740.111
Achromatopsia (no color)#7272720.202

Harmonies

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

Complementary

The opposite hue (180°).

  • #B540B3

    #B540B3

    oklch(57.7% 0.201 328.5)

  • #00923B

    #00923B

    oklch(57.6% 0.165 148.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B540B3

    #B540B3

    oklch(57.7% 0.201 328.5)

  • #8C54DD

    #8C54DD

    oklch(57.7% 0.2 298.8)

  • #CF3178

    #CF3178

    oklch(57.8% 0.201 358.6)

Open the analogous palette in the generator

Split complementary

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

  • #B540B3

    #B540B3

    oklch(57.7% 0.201 328.5)

  • #728300

    #728300

    oklch(57.6% 0.135 118.4)

  • #008D7A

    #008D7A

    oklch(57.6% 0.105 178.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B540B3

    #B540B3

    oklch(57.7% 0.201 328.5)

  • #967400

    #967400

    oklch(57.6% 0.118 88.1)

  • #008998

    #008998

    oklch(57.6% 0.099 208.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B540B3

    #B540B3

    oklch(57.7% 0.201 328.5)

  • #B46100

    #B46100

    oklch(57.8% 0.138 58.2)

  • #00923B

    #00923B

    oklch(57.6% 0.165 148.4)

  • #0082BC

    #0082BC

    oklch(57.6% 0.129 238.4)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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