#B42DB3#B42DB3

#B42DB3 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.9% C 0.222 H 328.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B42DB3
RGBrgb(180, 45, 179)
HSLhsl(300, 60%, 44%)
HSVhsv(300, 75%, 71%)
CMYKcmyk(0%, 75%, 0.6%, 29.4%)
CIE-LABlab(45.41, 67.59, -42.02)
CIE-LCHlch(45.41, 79.59, 328.13°)
OKLaboklab(55.88% 0.1891 -0.1164)
OKLCHoklch(55.88% 0.222 328.4)
XYZxyz(27.8972, 14.8368, 44.0336)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DB3 #2DB42E
analogous
#712DB4 #B42DB3 #B42D70
triadic
#B42DB3 #B3B42D #2DB3B4
tetradic
#B42DB3 #B4712D #2DB42E #2D70B4
square
#B42DB3 #B4712D #2DB42E #2D70B4
split-complementary
#B42DB3 #70B42D #2DB471
monochromatic
#521552 #832182 #B42DB3 #D24CD1 #DE7DDE

Accessibility & contrast

On white

5.29
#B42DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B42DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DB3
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DB3#FFFFFF#000000##FFFFFF
##B42DB31.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F60B7
Deuteranopia (green-blind)
#5372B0
Tritanopia (blue-blind)
#BA426E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42db3;
/* rgb */ color: rgb(180, 45, 179);
/* oklch */ color: oklch(55.9% 0.222 328.4);
Tailwind
colors: {
  custom: {
    50: '#ce75ca',
    500: '#b42db3',
    950: '#000000',
  },
}
SCSS
$custom: #b42db3;
$custom-light: #ce75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b42db3",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 300.444,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55877,
    "c": 0.22206,
    "h": 328.4
  },
  "luminance": 0.14835
}

Semantic roles & 50–950 ramp

primary
#B42DB3
secondary
#76C776
accent
#E34645
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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