#B42DA7#B42DA7

#B42DA7 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.213 H 332.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B42DA7
RGBrgb(180, 45, 167)
HSLhsl(306, 60%, 44%)
HSVhsv(306, 75%, 71%)
CMYKcmyk(0%, 75%, 7.2%, 29.4%)
CIE-LABlab(44.76, 65.70, -35.95)
CIE-LCHlch(44.76, 74.89, 331.32°)
OKLaboklab(55.2% 0.1889 -0.0988)
OKLCHoklch(55.2% 0.213 332.4)
XYZxyz(26.7359, 14.3723, 37.9177)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DA7 #2DB43A
analogous
#7E2DB4 #B42DA7 #B42D64
triadic
#B42DA7 #A7B42D #2DA7B4
tetradic
#B42DA7 #B47E2D #2DB43A #2D64B4
square
#B42DA7 #B47E2D #2DB43A #2D64B4
split-complementary
#B42DA7 #64B42D #2DB47E
monochromatic
#52154C #83217A #B42DA7 #D24CC5 #DE7DD5

Accessibility & contrast

On white

5.42
#B42DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B42DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DA7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DA7#FFFFFF#000000##FFFFFF
##B42DA71.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAA
Deuteranopia (green-blind)
#5A71A4
Tritanopia (blue-blind)
#BC3C68
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42da7;
/* rgb */ color: rgb(180, 45, 167);
/* oklch */ color: oklch(55.2% 0.213 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce74c1',
    500: '#b42da7',
    950: '#000000',
  },
}
SCSS
$custom: #b42da7;
$custom-light: #ce74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42da7",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 305.778,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55204,
    "c": 0.21321,
    "h": 332.4
  },
  "luminance": 0.1437
}

Semantic roles & 50–950 ramp

primary
#B42DA7
secondary
#76C77E
accent
#E35445
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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