#B42EA2#B42EA2

#B42EA2 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.0% C 0.209 H 334.2°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B42EA2
RGBrgb(180, 46, 162)
HSLhsl(308, 59%, 44%)
HSVhsv(308, 74%, 71%)
CMYKcmyk(0%, 74.4%, 10%, 29.4%)
CIE-LABlab(44.62, 64.63, -33.20)
CIE-LCHlch(44.62, 72.66, 332.81°)
OKLaboklab(55.02% 0.1877 -0.0909)
OKLCHoklch(55.02% 0.209 334.2)
XYZxyz(26.3212, 14.2682, 35.5432)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EA2 #2EB440
analogous
#832EB4 #B42EA2 #B42E5F
triadic
#B42EA2 #A2B42E #2EA2B4
tetradic
#B42EA2 #B4832E #2EB440 #2E5FB4
square
#B42EA2 #B4832E #2EB440 #2E5FB4
split-complementary
#B42EA2 #5FB42E #2EB483
monochromatic
#53154A #832276 #B42EA2 #D24EC0 #DE7ED1

Accessibility & contrast

On white

5.45
#B42EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42EA2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EA2#FFFFFF#000000##FFFFFF
##B42EA21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42ea2;
/* rgb */ color: rgb(180, 46, 162);
/* oklch */ color: oklch(55.0% 0.209 334.2);
Tailwind
colors: {
  custom: {
    50: '#ce75be',
    500: '#b42ea2',
    950: '#000000',
  },
}
SCSS
$custom: #b42ea2;
$custom-light: #ce75be;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ea2",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 308.06,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55016,
    "c": 0.2086,
    "h": 334.2
  },
  "luminance": 0.14266
}

Semantic roles & 50–950 ramp

primary
#B42EA2
secondary
#77C782
accent
#E25A45
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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