#B42EA7#B42EA7

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

Color values

HEX#B42EA7
RGBrgb(180, 46, 167)
HSLhsl(306, 59%, 44%)
HSVhsv(306, 74%, 71%)
CMYKcmyk(0%, 74.4%, 7.2%, 29.4%)
CIE-LABlab(44.87, 65.39, -35.78)
CIE-LCHlch(44.87, 74.54, 331.32°)
OKLaboklab(55.28% 0.188 -0.0983)
OKLCHoklch(55.28% 0.212 332.4)
XYZxyz(26.7745, 14.4495, 37.9306)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EA7 #2EB43B
analogous
#7E2EB4 #B42EA7 #B42E64
triadic
#B42EA7 #A7B42E #2EA7B4
tetradic
#B42EA7 #B47E2E #2EB43B #2E64B4
square
#B42EA7 #B47E2E #2EB43B #2E64B4
split-complementary
#B42EA7 #64B42E #2EB47E
monochromatic
#53154D #83227A #B42EA7 #D24EC5 #DE7ED5

Accessibility & contrast

On white

5.40
#B42EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B42EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EA7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EA7#FFFFFF#000000##FFFFFF
##B42EA71.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42ea7;
/* rgb */ color: rgb(180, 46, 167);
/* oklch */ color: oklch(55.3% 0.212 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce75c1',
    500: '#b42ea7',
    950: '#000000',
  },
}
SCSS
$custom: #b42ea7;
$custom-light: #ce75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ea7",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 305.821,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55282,
    "c": 0.21218,
    "h": 332.4
  },
  "luminance": 0.14447
}

Semantic roles & 50–950 ramp

primary
#B42EA7
secondary
#77C77F
accent
#E25545
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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