#B166AF

Closest named color: Soft Purple (#A66FB5). oklch(62% 0.135 328), rgb(177, 102, 175).

Aa

Black text reads best on this color (5.38:1).

About this color

#B166AF is a medium-dark, moderately saturated purple. In OKLCH its lightness is 62%, its chroma 0.135 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Soft Purple (#A66FB5), ΔE 0.027 away. Black text reads best on it, at 5.38:1.

Hue familyPurples
Lightnessmedium-dark (62%)
Chromamoderately saturated (0.135)
Temperaturein between
Nearest nameSoft Purple (#A66FB5)
Black text5.38:1
White text3.89:1

Values

HEX#B166AF
RGBrgb(177, 102, 175)
HSLhsl(302, 32%, 55%)
OKLCHoklch(62% 0.135 328)

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 #B166AF 3.89:1 AA large text Lc -71.6 Content text, not long reading
Black text on #B166AF 5.38:1 AA Lc 38.0 Non-text elements, placeholder text
#B166AF text on white 3.89:1 AA large text Lc 66.1 Content text, not long reading
#B166AF text on black 5.38:1 AA Lc -35.5 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 500.

  1. Step 50

    50

    #F9F3F8

    oklch(97% 0.009 330.9)

  2. Step 100

    100

    #F1E6F0

    oklch(93.6% 0.018 328.5)

  3. Step 200

    200

    #E7D1E6

    oklch(88.5% 0.037 327.3)

  4. Step 300

    300

    #D9B2D7

    oklch(80.9% 0.067 327.8)

  5. Step 400

    400

    #C589C2

    oklch(70.8% 0.105 328.3)

  6. Step 500

    500 (this color)

    #B166AF

    oklch(62% 0.135 328)

  7. Step 600

    600

    #A04F9E

    oklch(55.6% 0.147 328.3)

  8. Step 700

    700

    #883F87

    oklch(49% 0.137 327.9)

  9. Step 800

    800

    #6F356E

    oklch(42.7% 0.113 328)

  10. Step 900

    900

    #5A2F59

    oklch(37.8% 0.088 328)

  11. Step 950

    950

    #351C34

    oklch(27.1% 0.055 328.4)

Export this scale for Tailwind in the Tailwind colors tool

#B166AF 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)#617BB20.129
Deuteranopia (no green cones)#7585AD0.118
Tritanopia (no blue cones)#B66D820.077
Achromatopsia (no color)#8181810.136

Harmonies

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

Complementary

The opposite hue (180°).

  • #B166AF

    #B166AF

    oklch(62% 0.135 328)

  • #439C55

    #439C55

    oklch(62.1% 0.135 148)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B166AF

    #B166AF

    oklch(62% 0.135 328)

  • #9172CC

    #9172CC

    oklch(62% 0.135 298.3)

  • #C56086

    #C56086

    oklch(62.1% 0.135 358)

Open the analogous palette in the generator

Split complementary

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

  • #B166AF

    #B166AF

    oklch(62% 0.135 328)

  • #7F901B

    #7F901B

    oklch(61.9% 0.135 118.1)

  • #009C86

    #009C86

    oklch(62% 0.114 178)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B166AF

    #B166AF

    oklch(62% 0.135 328)

  • #A68000

    #A68000

    oklch(61.9% 0.127 87.6)

  • #0097A8

    #0097A8

    oklch(61.9% 0.107 208.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B166AF

    #B166AF

    oklch(62% 0.135 328)

  • #C16E21

    #C16E21

    oklch(61.9% 0.135 57.8)

  • #439C55

    #439C55

    oklch(62.1% 0.135 148)

  • #0B90CD

    #0B90CD

    oklch(62% 0.135 237.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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