#B342D9#B342D9

#B342D9 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.9% C 0.230 H 316.3°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B342D9
RGBrgb(179, 66, 217)
HSLhsl(285, 67%, 55%)
HSVhsv(285, 70%, 85%)
CMYKcmyk(17.5%, 69.6%, 0%, 14.9%)
CIE-LABlab(50.09, 66.78, -56.56)
CIE-LCHlch(50.09, 87.51, 319.74°)
OKLaboklab(59.9% 0.1662 -0.159)
OKLCHoklch(59.9% 0.23 316.3)
XYZxyz(33.0611, 18.4912, 67.4598)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342D9 #68D942
analogous
#6842D9 #B342D9 #D942B3
triadic
#B342D9 #D9B342 #42D9B3
tetradic
#B342D9 #D96842 #68D942 #42B3D9
square
#B342D9 #D96842 #68D942 #42B3D9
split-complementary
#B342D9 #B3D942 #42D968
monochromatic
#6B1B86 #9425B9 #B342D9 #C775E3 #DCA8ED

Accessibility & contrast

On white

4.47
#B342D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#B342D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342D9
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342D9#FFFFFF#000000##000000
##B342D91.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#427AD6
Tritanopia (blue-blind)
#B16089
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b342d9;
/* rgb */ color: rgb(179, 66, 217);
/* oklch */ color: oklch(59.9% 0.230 316.3);
Tailwind
colors: {
  custom: {
    50: '#ce80e5',
    500: '#b342d9',
    950: '#000000',
  },
}
SCSS
$custom: #b342d9;
$custom-light: #ce80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b342d9",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 284.901,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59905,
    "c": 0.23001,
    "h": 316.3
  },
  "luminance": 0.1849
}

Semantic roles & 50–950 ramp

primary
#B342D9
secondary
#ACDB9C
accent
#E93E69
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B342D9

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B342D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva