#B42EA1#B42EA1

#B42EA1 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.0% C 0.208 H 334.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B42EA1
RGBrgb(180, 46, 161)
HSLhsl(309, 59%, 44%)
HSVhsv(309, 74%, 71%)
CMYKcmyk(0%, 74.4%, 10.6%, 29.4%)
CIE-LABlab(44.56, 64.48, -32.68)
CIE-LCHlch(44.56, 72.29, 333.12°)
OKLaboklab(54.96% 0.1877 -0.0894)
OKLCHoklch(54.96% 0.208 334.5)
XYZxyz(26.2327, 14.2328, 35.0769)
Luminance0.1423 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EA1 #2EB441
analogous
#842EB4 #B42EA1 #B42E5E
triadic
#B42EA1 #A1B42E #2EA1B4
tetradic
#B42EA1 #B4842E #2EB441 #2E5EB4
square
#B42EA1 #B4842E #2EB441 #2E5EB4
split-complementary
#B42EA1 #5EB42E #2EB484
monochromatic
#53154A #832275 #B42EA1 #D24EBF #DE7ED1

Accessibility & contrast

On white

5.46
#B42EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B42EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EA1
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EA1#FFFFFF#000000##FFFFFF
##B42EA11.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42ea1;
/* rgb */ color: rgb(180, 46, 161);
/* oklch */ color: oklch(55.0% 0.208 334.5);
Tailwind
colors: {
  custom: {
    50: '#ce75bd',
    500: '#b42ea1',
    950: '#000000',
  },
}
SCSS
$custom: #b42ea1;
$custom-light: #ce75bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ea1",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 308.507,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54963,
    "c": 0.20789,
    "h": 334.5
  },
  "luminance": 0.1423
}

Semantic roles & 50–950 ramp

primary
#B42EA1
secondary
#77C782
accent
#E25C45
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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