#B342DB#B342DB

#B342DB is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.0% C 0.232 H 315.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B342DB
RGBrgb(179, 66, 219)
HSLhsl(284, 68%, 56%)
HSVhsv(284, 70%, 86%)
CMYKcmyk(18.3%, 69.9%, 0%, 14.1%)
CIE-LABlab(50.21, 67.17, -57.50)
CIE-LCHlch(50.21, 88.42, 319.44°)
OKLaboklab(60.03% 0.166 -0.1618)
OKLCHoklch(60.03% 0.232 315.7)
XYZxyz(33.3228, 18.5959, 68.8381)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B342DB #6ADB42
analogous
#6642DB #B342DB #DB42B6
triadic
#B342DB #DBB342 #42DBB3
tetradic
#B342DB #DB6642 #6ADB42 #42B6DB
square
#B342DB #DB6642 #6ADB42 #42B6DB
split-complementary
#B342DB #B6DB42 #42DB66
monochromatic
#6C1A89 #9424BC #B342DB #C875E5 #DCA9EF

Accessibility & contrast

On white

4.45
#B342DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#B342DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B342DB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B342DB#FFFFFF#000000##000000
##B342DB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#407BD8
Tritanopia (blue-blind)
#B0618A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b342db;
/* rgb */ color: rgb(179, 66, 219);
/* oklch */ color: oklch(60.0% 0.232 315.7);
Tailwind
colors: {
  custom: {
    50: '#ce80e7',
    500: '#b342db',
    950: '#000000',
  },
}
SCSS
$custom: #b342db;
$custom-light: #ce80e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b342db",
  "rgb": {
    "r": 179,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 284.314,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60034,
    "c": 0.23179,
    "h": 315.7
  },
  "luminance": 0.18595
}

Semantic roles & 50–950 ramp

primary
#B342DB
secondary
#ADDC9D
accent
#EB3D6A
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B342DB

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

Preview Lab → · Contrast checker → · Palette generator →

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