#B42E9E#B42E9E

#B42E9E is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.206 H 335.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#B42E9E
RGBrgb(180, 46, 158)
HSLhsl(310, 59%, 44%)
HSVhsv(310, 74%, 71%)
CMYKcmyk(0%, 74.4%, 12.2%, 29.4%)
CIE-LABlab(44.42, 64.04, -31.12)
CIE-LCHlch(44.42, 71.20, 334.08°)
OKLaboklab(54.81% 0.1874 -0.0849)
OKLCHoklch(54.81% 0.206 335.6)
XYZxyz(25.9713, 14.1283, 33.7003)
Luminance0.1413 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E9E #2EB444
analogous
#872EB4 #B42E9E #B42E5B
triadic
#B42E9E #9EB42E #2E9EB4
tetradic
#B42E9E #B4872E #2EB444 #2E5BB4
square
#B42E9E #B4872E #2EB444 #2E5BB4
split-complementary
#B42E9E #5BB42E #2EB487
monochromatic
#531548 #832273 #B42E9E #D24EBC #DE7ECE

Accessibility & contrast

On white

5.49
#B42E9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#B42E9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E9E
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E9E#FFFFFF#000000##FFFFFF
##B42E9E1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5CA1
Deuteranopia (green-blind)
#5F709B
Tritanopia (blue-blind)
#BD3863
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42e9e;
/* rgb */ color: rgb(180, 46, 158);
/* oklch */ color: oklch(54.8% 0.206 335.6);
Tailwind
colors: {
  custom: {
    50: '#ce75bb',
    500: '#b42e9e',
    950: '#000000',
  },
}
SCSS
$custom: #b42e9e;
$custom-light: #ce75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e9e",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 309.851,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54808,
    "c": 0.20578,
    "h": 335.6
  },
  "luminance": 0.14126
}

Semantic roles & 50–950 ramp

primary
#B42E9E
secondary
#77C784
accent
#E25F45
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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