#B340A4

Closest named color: Purpley Pink (#C83CB9). oklch(56.7% 0.188 333.3), rgb(179, 64, 164).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (57%)
Chromavivid (0.188)
Temperaturein between
Nearest namePurpley Pink (#C83CB9)
Black text4.18:1
White text5.01:1

Values

HEX#B340A4
RGBrgb(179, 64, 164)
HSLhsl(308, 47%, 48%)
OKLCHoklch(56.7% 0.188 333.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 #B340A4 5.01:1 AA Lc -79.3 Fine for body text
Black text on #B340A4 4.18:1 AA large text Lc 30.2 Non-text elements, placeholder text
#B340A4 text on white 5.01:1 AA Lc 73.8 Content text, not long reading
#B340A4 text on black 4.18:1 AA large text Lc -27.9 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

    #FAF3F9

    oklch(97.1% 0.011 330.1)

  2. Step 100

    100

    #F5E4F1

    oklch(93.6% 0.025 333.7)

  3. Step 200

    200

    #EDCEE6

    oklch(88.4% 0.047 333.8)

  4. Step 300

    300

    #E2ADD8

    oklch(80.9% 0.084 333)

  5. Step 400

    400

    #D27FC4

    oklch(70.7% 0.135 333.3)

  6. Step 500

    500

    #C45BB5

    oklch(63.1% 0.172 333.2)

  7. Step 600

    600 (this color)

    #B340A4

    oklch(56.7% 0.188 333.3)

  8. Step 700

    700

    #962D89

    oklch(49% 0.174 333.3)

  9. Step 800

    800

    #7A2770

    oklch(42.6% 0.145 333)

  10. Step 900

    900

    #63265A

    oklch(37.7% 0.112 333.7)

  11. Step 950

    950

    #3A1735

    oklch(27% 0.071 333.1)

Export this scale for Tailwind in the Tailwind colors tool

#B340A4 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)#3D64A70.198
Deuteranopia (no green cones)#6375A10.172
Tritanopia (no blue cones)#BB496C0.097
Achromatopsia (no color)#6F6F6F0.189

Harmonies

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

Complementary

The opposite hue (180°).

  • #B340A4

    #B340A4

    oklch(56.7% 0.188 333.3)

  • #008E4B

    #008E4B

    oklch(56.7% 0.145 153.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B340A4

    #B340A4

    oklch(56.7% 0.188 333.3)

  • #8E52CF

    #8E52CF

    oklch(56.7% 0.187 303)

  • #C9356B

    #C9356B

    oklch(56.8% 0.188 3.5)

Open the analogous palette in the generator

Split complementary

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

  • #B340A4

    #B340A4

    oklch(56.7% 0.188 333.3)

  • #678300

    #678300

    oklch(56.7% 0.14 123.3)

  • #00897C

    #00897C

    oklch(56.6% 0.101 183.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B340A4

    #B340A4

    oklch(56.7% 0.188 333.3)

  • #8E7400

    #8E7400

    oklch(56.7% 0.116 93.2)

  • #008599

    #008599

    oklch(56.7% 0.099 213)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B340A4

    #B340A4

    oklch(56.7% 0.188 333.3)

  • #AA6300

    #AA6300

    oklch(56.7% 0.129 63.7)

  • #008E4B

    #008E4B

    oklch(56.7% 0.145 153.2)

  • #007DC0

    #007DC0

    oklch(56.7% 0.137 243.1)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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