#B42DB5#B42DB5

#B42DB5 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.224 H 327.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B42DB5
RGBrgb(180, 45, 181)
HSLhsl(300, 60%, 44%)
HSVhsv(300, 75%, 71%)
CMYKcmyk(0.6%, 75.1%, 0%, 29%)
CIE-LABlab(45.52, 67.91, -43.02)
CIE-LCHlch(45.52, 80.39, 327.65°)
OKLaboklab(55.99% 0.1891 -0.1193)
OKLCHoklch(55.99% 0.224 327.7)
XYZxyz(28.1009, 14.9183, 45.1066)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DB5 #2EB52D
analogous
#702DB5 #B42DB5 #B52D72
triadic
#B42DB5 #B5B42D #2DB5B4
tetradic
#B42DB5 #B5702D #2EB52D #2D72B5
square
#B42DB5 #B5702D #2EB52D #2D72B5
split-complementary
#B42DB5 #72B52D #2DB570
monochromatic
#531553 #832184 #B42DB5 #D24DD3 #DE7EDF

Accessibility & contrast

On white

5.27
#B42DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B42DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DB5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DB5#FFFFFF#000000##FFFFFF
##B42DB51.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0861B9
Deuteranopia (green-blind)
#5272B2
Tritanopia (blue-blind)
#BA4370
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42db5;
/* rgb */ color: rgb(180, 45, 181);
/* oklch */ color: oklch(56.0% 0.224 327.7);
Tailwind
colors: {
  custom: {
    50: '#ce75cc',
    500: '#b42db5',
    950: '#000000',
  },
}
SCSS
$custom: #b42db5;
$custom-light: #ce75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42db5",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 299.559,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55993,
    "c": 0.22356,
    "h": 327.7
  },
  "luminance": 0.14916
}

Semantic roles & 50–950 ramp

primary
#B42DB5
secondary
#77C776
accent
#E34446
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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