#B42DB2#B42DB2

#B42DB2 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.221 H 328.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B42DB2
RGBrgb(180, 45, 178)
HSLhsl(301, 60%, 44%)
HSVhsv(301, 75%, 71%)
CMYKcmyk(0%, 75%, 1.1%, 29.4%)
CIE-LABlab(45.35, 67.43, -41.52)
CIE-LCHlch(45.35, 79.19, 328.38°)
OKLaboklab(55.82% 0.1891 -0.115)
OKLCHoklch(55.82% 0.221 328.7)
XYZxyz(27.7964, 14.7965, 43.5028)
Luminance0.1479 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DB2 #2DB42F
analogous
#732DB4 #B42DB2 #B42D6F
triadic
#B42DB2 #B2B42D #2DB2B4
tetradic
#B42DB2 #B4732D #2DB42F #2D6FB4
square
#B42DB2 #B4732D #2DB42F #2D6FB4
split-complementary
#B42DB2 #6FB42D #2DB473
monochromatic
#521551 #832182 #B42DB2 #D24CD0 #DE7DDD

Accessibility & contrast

On white

5.30
#B42DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B42DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DB2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DB2#FFFFFF#000000##FFFFFF
##B42DB21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1260B6
Deuteranopia (green-blind)
#5471AF
Tritanopia (blue-blind)
#BA426E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42db2;
/* rgb */ color: rgb(180, 45, 178);
/* oklch */ color: oklch(55.8% 0.221 328.7);
Tailwind
colors: {
  custom: {
    50: '#ce75c9',
    500: '#b42db2',
    950: '#000000',
  },
}
SCSS
$custom: #b42db2;
$custom-light: #ce75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42db2",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 300.889,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55819,
    "c": 0.22131,
    "h": 328.7
  },
  "luminance": 0.14794
}

Semantic roles & 50–950 ramp

primary
#B42DB2
secondary
#76C777
accent
#E34745
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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