#B342D8#B342D8

#B342D8 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.8% C 0.229 H 316.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B342D8
RGBrgb(179, 66, 216)
HSLhsl(285, 66%, 55%)
HSVhsv(285, 69%, 85%)
CMYKcmyk(17.1%, 69.4%, 0%, 15.3%)
CIE-LABlab(50.02, 66.59, -56.09)
CIE-LCHlch(50.02, 87.06, 319.89°)
OKLaboklab(59.84% 0.1662 -0.1577)
OKLCHoklch(59.84% 0.229 316.5)
XYZxyz(32.9314, 18.4393, 66.7769)
Luminance0.1844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342D8 #67D842
analogous
#6842D8 #B342D8 #D842B2
triadic
#B342D8 #D8B342 #42D8B3
tetradic
#B342D8 #D86842 #67D842 #42B2D8
square
#B342D8 #D86842 #67D842 #42B2D8
split-complementary
#B342D8 #B2D842 #42D868
monochromatic
#6A1B84 #9326B7 #B342D8 #C775E2 #DCA7ED

Accessibility & contrast

On white

4.48
#B342D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#B342D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342D8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342D8#FFFFFF#000000##000000
##B342D81.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#437AD5
Tritanopia (blue-blind)
#B16089
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b342d8;
/* rgb */ color: rgb(179, 66, 216);
/* oklch */ color: oklch(59.8% 0.229 316.5);
Tailwind
colors: {
  custom: {
    50: '#ce80e5',
    500: '#b342d8',
    950: '#000000',
  },
}
SCSS
$custom: #b342d8;
$custom-light: #ce80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b342d8",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 285.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59841,
    "c": 0.22911,
    "h": 316.5
  },
  "luminance": 0.18438
}

Semantic roles & 50–950 ramp

primary
#B342D8
secondary
#ABDA9C
accent
#E93F69
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B342D8

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

Preview Lab → · Contrast checker → · Palette generator →

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