#B338CF

Closest named color: Vibrant Purple (#AD03DE). oklch(58.3% 0.233 319.4), rgb(179, 56, 207).

Aa

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

About this color

#B338CF is a medium-dark, vivid purple. In OKLCH its lightness is 58%, its chroma 0.233 and its hue 319°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Vibrant Purple (#AD03DE), ΔE 0.052 away. White text reads best on it, at 4.79:1.

Hue familyPurples
Lightnessmedium-dark (58%)
Chromavivid (0.233)
Temperaturein between
Nearest nameVibrant Purple (#AD03DE)
Black text4.38:1
White text4.79:1

Values

HEX#B338CF
RGBrgb(179, 56, 207)
HSLhsl(289, 61%, 52%)
OKLCHoklch(58.3% 0.233 319.4)

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 #B338CF 4.79:1 AA Lc -77.6 Fine for body text
Black text on #B338CF 4.38:1 AA large text Lc 32.0 Non-text elements, placeholder text
#B338CF text on white 4.79:1 AA Lc 72.1 Content text, not long reading
#B338CF text on black 4.38:1 AA large text Lc -29.6 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

    #FAF3FC

    oklch(97.2% 0.014 318.7)

  2. Step 100

    100

    #F3E4F7

    oklch(93.6% 0.03 319.1)

  3. Step 200

    200

    #EACDF2

    oklch(88.4% 0.059 318.9)

  4. Step 300

    300

    #DEABEB

    oklch(80.9% 0.104 319.3)

  5. Step 400

    400

    #CD7AE1

    oklch(70.6% 0.168 319.6)

  6. Step 500

    500

    #BF52D9

    oklch(63.2% 0.214 319.4)

  7. Step 600

    600 (this color)

    #B338CF

    oklch(58.3% 0.233 319.4)

  8. Step 700

    700

    #921CAB

    oklch(49.1% 0.217 319.5)

  9. Step 800

    800

    #761C8A

    oklch(42.6% 0.179 319.4)

  10. Step 900

    900

    #60206F

    oklch(37.8% 0.14 319.4)

  11. Step 950

    950

    #381441

    oklch(26.9% 0.089 319.1)

Export this scale for Tailwind in the Tailwind colors tool

#B338CF 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)#006AD30.228
Deuteranopia (no green cones)#4476CC0.201
Tritanopia (no blue cones)#B356810.143
Achromatopsia (no color)#7272720.235

Harmonies

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

Complementary

The opposite hue (180°).

  • #B338CF

    #B338CF

    oklch(58.3% 0.233 319.4)

  • #309300

    #309300

    oklch(58.2% 0.185 139.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B338CF

    #B338CF

    oklch(58.3% 0.233 319.4)

  • #7F53F8

    #7F53F8

    oklch(58.3% 0.232 289.4)

  • #D51990

    #D51990

    oklch(58.3% 0.233 349.3)

Open the analogous palette in the generator

Split complementary

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

  • #B338CF

    #B338CF

    oklch(58.3% 0.233 319.4)

  • #818100

    #818100

    oklch(58.4% 0.127 109.8)

  • #009170

    #009170

    oklch(58.4% 0.116 169.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B338CF

    #B338CF

    oklch(58.3% 0.233 319.4)

  • #A17100

    #A17100

    oklch(58.3% 0.121 79.1)

  • #008D92

    #008D92

    oklch(58.4% 0.099 199.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B338CF

    #B338CF

    oklch(58.3% 0.233 319.4)

  • #C15900

    #C15900

    oklch(58.4% 0.155 49.7)

  • #309300

    #309300

    oklch(58.2% 0.185 139.5)

  • #0087B2

    #0087B2

    oklch(58.3% 0.116 229.6)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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