#B42EA9#B42EA9

#B42EA9 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.214 H 331.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B42EA9
RGBrgb(180, 46, 169)
HSLhsl(305, 59%, 44%)
HSVhsv(305, 74%, 71%)
CMYKcmyk(0%, 74.4%, 6.1%, 29.4%)
CIE-LABlab(44.98, 65.70, -36.80)
CIE-LCHlch(44.98, 75.30, 330.75°)
OKLaboklab(55.39% 0.1881 -0.1013)
OKLCHoklch(55.39% 0.214 331.7)
XYZxyz(26.9608, 14.5241, 38.9119)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EA9 #2EB439
analogous
#7C2EB4 #B42EA9 #B42E66
triadic
#B42EA9 #A9B42E #2EA9B4
tetradic
#B42EA9 #B47C2E #2EB439 #2E66B4
square
#B42EA9 #B47C2E #2EB439 #2E66B4
split-complementary
#B42EA9 #66B42E #2EB47C
monochromatic
#53154D #83227B #B42EA9 #D24EC7 #DE7ED6

Accessibility & contrast

On white

5.38
#B42EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B42EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EA9
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EA9#FFFFFF#000000##FFFFFF
##B42EA91.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235EAC
Deuteranopia (green-blind)
#5971A6
Tritanopia (blue-blind)
#BC3E69
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42ea9;
/* rgb */ color: rgb(180, 46, 169);
/* oklch */ color: oklch(55.4% 0.214 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce75c3',
    500: '#b42ea9',
    950: '#000000',
  },
}
SCSS
$custom: #b42ea9;
$custom-light: #ce75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ea9",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 304.925,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55391,
    "c": 0.21363,
    "h": 331.7
  },
  "luminance": 0.14522
}

Semantic roles & 50–950 ramp

primary
#B42EA9
secondary
#77C77E
accent
#E25245
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B42EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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