#B42DB9#B42DB9

#B42DB9 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.227 H 326.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B42DB9
RGBrgb(180, 45, 185)
HSLhsl(298, 61%, 45%)
HSVhsv(298, 76%, 73%)
CMYKcmyk(2.7%, 75.7%, 0%, 27.5%)
CIE-LABlab(45.75, 68.56, -45.00)
CIE-LCHlch(45.75, 82.02, 326.72°)
OKLaboklab(56.23% 0.1889 -0.1251)
OKLCHoklch(56.23% 0.227 326.5)
XYZxyz(28.5172, 15.0848, 47.2992)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DB9 #32B92D
analogous
#6E2DB9 #B42DB9 #B92D78
triadic
#B42DB9 #B9B42D #2DB9B4
tetradic
#B42DB9 #B96E2D #32B92D #2D78B9
square
#B42DB9 #B96E2D #32B92D #2D78B9
split-complementary
#B42DB9 #78B92D #2DB96E
monochromatic
#541557 #842188 #B42DB9 #CF4FD4 #DD80E0

Accessibility & contrast

On white

5.23
#B42DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B42DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DB9
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DB9#FFFFFF#000000##FFFFFF
##B42DB91.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#5072B6
Tritanopia (blue-blind)
#B94572
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42db9;
/* rgb */ color: rgb(180, 45, 185);
/* oklch */ color: oklch(56.2% 0.227 326.5);
Tailwind
colors: {
  custom: {
    50: '#ce75ce',
    500: '#b42db9',
    950: '#000000',
  },
}
SCSS
$custom: #b42db9;
$custom-light: #ce75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42db9",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 297.857,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56229,
    "c": 0.22659,
    "h": 326.5
  },
  "luminance": 0.15083
}

Semantic roles & 50–950 ramp

primary
#B42DB9
secondary
#7CC979
accent
#E4444A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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