#B42DA2#B42DA2

#B42DA2 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.210 H 334.1°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#B42DA2
RGBrgb(180, 45, 162)
HSLhsl(308, 60%, 44%)
HSVhsv(308, 75%, 71%)
CMYKcmyk(0%, 75%, 10%, 29.4%)
CIE-LABlab(44.51, 64.95, -33.37)
CIE-LCHlch(44.51, 73.02, 332.80°)
OKLaboklab(54.94% 0.1887 -0.0914)
OKLCHoklch(54.94% 0.21 334.1)
XYZxyz(26.2826, 14.1910, 35.5303)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DA2 #2DB43F
analogous
#832DB4 #B42DA2 #B42D5F
triadic
#B42DA2 #A2B42D #2DA2B4
tetradic
#B42DA2 #B4832D #2DB43F #2D5FB4
square
#B42DA2 #B4832D #2DB43F #2D5FB4
split-complementary
#B42DA2 #5FB42D #2DB483
monochromatic
#52154A #832176 #B42DA2 #D24CC0 #DE7DD1

Accessibility & contrast

On white

5.47
#B42DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B42DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DA2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DA2#FFFFFF#000000##FFFFFF
##B42DA21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#5C709F
Tritanopia (blue-blind)
#BD3A65
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42da2;
/* rgb */ color: rgb(180, 45, 162);
/* oklch */ color: oklch(54.9% 0.210 334.1);
Tailwind
colors: {
  custom: {
    50: '#ce74be',
    500: '#b42da2',
    950: '#000000',
  },
}
SCSS
$custom: #b42da2;
$custom-light: #ce74be;
$custom-dark: #000000;
JSON
{
  "hex": "#b42da2",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 308,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54937,
    "c": 0.20964,
    "h": 334.1
  },
  "luminance": 0.14189
}

Semantic roles & 50–950 ramp

primary
#B42DA2
secondary
#76C781
accent
#E35A45
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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