#B342DA#B342DA

#B342DA is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 60.0% C 0.231 H 316.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B342DA
RGBrgb(179, 66, 218)
HSLhsl(285, 67%, 56%)
HSVhsv(285, 70%, 85%)
CMYKcmyk(17.9%, 69.7%, 0%, 14.5%)
CIE-LABlab(50.15, 66.98, -57.03)
CIE-LCHlch(50.15, 87.97, 319.59°)
OKLaboklab(59.97% 0.1661 -0.1604)
OKLCHoklch(59.97% 0.231 316)
XYZxyz(33.1915, 18.5434, 68.1469)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342DA #69DA42
analogous
#6742DA #B342DA #DA42B5
triadic
#B342DA #DAB342 #42DAB3
tetradic
#B342DA #DA6742 #69DA42 #42B5DA
square
#B342DA #DA6742 #69DA42 #42B5DA
split-complementary
#B342DA #B5DA42 #42DA67
monochromatic
#6B1A87 #9424BA #B342DA #C875E4 #DCA8EE

Accessibility & contrast

On white

4.46
#B342DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B342DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342DA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342DA#FFFFFF#000000##000000
##B342DA1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DE
Deuteranopia (green-blind)
#417AD7
Tritanopia (blue-blind)
#B0618A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b342da;
/* rgb */ color: rgb(179, 66, 218);
/* oklch */ color: oklch(60.0% 0.231 316.0);
Tailwind
colors: {
  custom: {
    50: '#ce80e6',
    500: '#b342da',
    950: '#000000',
  },
}
SCSS
$custom: #b342da;
$custom-light: #ce80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#b342da",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 284.605,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59969,
    "c": 0.2309,
    "h": 316
  },
  "luminance": 0.18542
}

Semantic roles & 50–950 ramp

primary
#B342DA
secondary
#ADDB9C
accent
#EA3E6A
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B342DA

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

Preview Lab → · Contrast checker → · Palette generator →

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