#B42DB6#B42DB6

#B42DB6 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.224 H 327.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B42DB6
RGBrgb(180, 45, 182)
HSLhsl(299, 60%, 45%)
HSVhsv(299, 75%, 71%)
CMYKcmyk(1.1%, 75.3%, 0%, 28.6%)
CIE-LABlab(45.58, 68.07, -43.52)
CIE-LCHlch(45.58, 80.79, 327.41°)
OKLaboklab(56.05% 0.189 -0.1208)
OKLCHoklch(56.05% 0.224 327.4)
XYZxyz(28.2039, 14.9595, 45.6489)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DB6 #2FB62D
analogous
#702DB6 #B42DB6 #B62D74
triadic
#B42DB6 #B6B42D #2DB6B4
tetradic
#B42DB6 #B6702D #2FB62D #2D74B6
square
#B42DB6 #B6702D #2FB62D #2D74B6
split-complementary
#B42DB6 #74B62D #2DB670
monochromatic
#531554 #832185 #B42DB6 #D14DD3 #DE7EDF

Accessibility & contrast

On white

5.26
#B42DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B42DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DB6
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DB6#FFFFFF#000000##FFFFFF
##B42DB61.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0461BA
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#B94470
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42db6;
/* rgb */ color: rgb(180, 45, 182);
/* oklch */ color: oklch(56.1% 0.224 327.4);
Tailwind
colors: {
  custom: {
    50: '#ce75cc',
    500: '#b42db6',
    950: '#000000',
  },
}
SCSS
$custom: #b42db6;
$custom-light: #ce75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42db6",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 299.124,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56052,
    "c": 0.22432,
    "h": 327.4
  },
  "luminance": 0.14957
}

Semantic roles & 50–950 ramp

primary
#B42DB6
secondary
#78C877
accent
#E34447
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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