#B42DBA#B42DBA

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

Color values

HEX#B42DBA
RGBrgb(180, 45, 186)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 76%, 73%)
CMYKcmyk(3.2%, 75.8%, 0%, 27.1%)
CIE-LABlab(45.81, 68.73, -45.50)
CIE-LCHlch(45.81, 82.42, 326.50°)
OKLaboklab(56.29% 0.1889 -0.1265)
OKLCHoklch(56.29% 0.227 326.2)
XYZxyz(28.6231, 15.1272, 47.8571)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DBA #33BA2D
analogous
#6E2DBA #B42DBA #BA2D79
triadic
#B42DBA #BAB42D #2DBAB4
tetradic
#B42DBA #BA6E2D #33BA2D #2D79BA
square
#B42DBA #BA6E2D #33BA2D #2D79BA
split-complementary
#B42DBA #79BA2D #2DBA6E
monochromatic
#551557 #842189 #B42DBA #CF50D5 #DC81E0

Accessibility & contrast

On white

5.22
#B42DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42DBA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DBA#FFFFFF#000000##FFFFFF
##B42DBA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#4F72B7
Tritanopia (blue-blind)
#B94672
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42dba;
/* rgb */ color: rgb(180, 45, 186);
/* oklch */ color: oklch(56.3% 0.227 326.2);
Tailwind
colors: {
  custom: {
    50: '#ce75cf',
    500: '#b42dba',
    950: '#000000',
  },
}
SCSS
$custom: #b42dba;
$custom-light: #ce75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b42dba",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 297.447,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56289,
    "c": 0.22736,
    "h": 326.2
  },
  "luminance": 0.15125
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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