#B42DB8#B42DB8

#B42DB8 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.2% C 0.226 H 326.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B42DB8
RGBrgb(180, 45, 184)
HSLhsl(298, 61%, 45%)
HSVhsv(298, 76%, 72%)
CMYKcmyk(2.2%, 75.5%, 0%, 27.8%)
CIE-LABlab(45.69, 68.40, -44.51)
CIE-LCHlch(45.69, 81.61, 326.95°)
OKLaboklab(56.17% 0.189 -0.1237)
OKLCHoklch(56.17% 0.226 326.8)
XYZxyz(28.4120, 15.0428, 46.7452)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DB8 #31B82D
analogous
#6E2DB8 #B42DB8 #B82D77
triadic
#B42DB8 #B8B42D #2DB8B4
tetradic
#B42DB8 #B86E2D #31B82D #2D77B8
square
#B42DB8 #B86E2D #31B82D #2D77B8
split-complementary
#B42DB8 #77B82D #2DB86E
monochromatic
#541556 #842187 #B42DB8 #D04ED4 #DD80E0

Accessibility & contrast

On white

5.24
#B42DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B42DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DB8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DB8#FFFFFF#000000##FFFFFF
##B42DB81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#5072B5
Tritanopia (blue-blind)
#B94571
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42db8;
/* rgb */ color: rgb(180, 45, 184);
/* oklch */ color: oklch(56.2% 0.226 326.8);
Tailwind
colors: {
  custom: {
    50: '#ce75ce',
    500: '#b42db8',
    950: '#000000',
  },
}
SCSS
$custom: #b42db8;
$custom-light: #ce75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42db8",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 298.273,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.5617,
    "c": 0.22584,
    "h": 326.8
  },
  "luminance": 0.15041
}

Semantic roles & 50–950 ramp

primary
#B42DB8
secondary
#7BC978
accent
#E44449
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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