#B42EA8#B42EA8

#B42EA8 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.213 H 332.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B42EA8
RGBrgb(180, 46, 168)
HSLhsl(305, 59%, 44%)
HSVhsv(305, 74%, 71%)
CMYKcmyk(0%, 74.4%, 6.7%, 29.4%)
CIE-LABlab(44.92, 65.55, -36.29)
CIE-LCHlch(44.92, 74.92, 331.03°)
OKLaboklab(55.34% 0.1881 -0.0998)
OKLCHoklch(55.34% 0.213 332)
XYZxyz(26.8673, 14.4867, 38.4194)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EA8 #2EB43A
analogous
#7D2EB4 #B42EA8 #B42E65
triadic
#B42EA8 #A8B42E #2EA8B4
tetradic
#B42EA8 #B47D2E #2EB43A #2E65B4
square
#B42EA8 #B47D2E #2EB43A #2E65B4
split-complementary
#B42EA8 #65B42E #2EB47D
monochromatic
#53154D #83227B #B42EA8 #D24EC6 #DE7ED6

Accessibility & contrast

On white

5.39
#B42EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42EA8
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EA8#FFFFFF#000000##FFFFFF
##B42EA81.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAB
Deuteranopia (green-blind)
#5A71A5
Tritanopia (blue-blind)
#BC3E69
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42ea8;
/* rgb */ color: rgb(180, 46, 168);
/* oklch */ color: oklch(55.3% 0.213 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce75c2',
    500: '#b42ea8',
    950: '#000000',
  },
}
SCSS
$custom: #b42ea8;
$custom-light: #ce75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ea8",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 305.373,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55337,
    "c": 0.21291,
    "h": 332
  },
  "luminance": 0.14484
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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