#B42EAF#B42EAF

#B42EAF is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.7% C 0.218 H 329.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B42EAF
RGBrgb(180, 46, 175)
HSLhsl(302, 59%, 44%)
HSVhsv(302, 74%, 71%)
CMYKcmyk(0%, 74.4%, 2.8%, 29.4%)
CIE-LABlab(45.30, 66.64, -39.84)
CIE-LCHlch(45.30, 77.64, 329.13°)
OKLaboklab(55.73% 0.1882 -0.1101)
OKLCHoklch(55.73% 0.218 329.7)
XYZxyz(27.5371, 14.7546, 41.9467)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EAF #2EB433
analogous
#762EB4 #B42EAF #B42E6C
triadic
#B42EAF #AFB42E #2EAFB4
tetradic
#B42EAF #B4762E #2EB433 #2E6CB4
square
#B42EAF #B4762E #2EB433 #2E6CB4
split-complementary
#B42EAF #6CB42E #2EB476
monochromatic
#531550 #832280 #B42EAF #D24ECD #DE7EDB

Accessibility & contrast

On white

5.32
#B42EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B42EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EAF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EAF#FFFFFF#000000##FFFFFF
##B42EAF1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A60B2
Deuteranopia (green-blind)
#5671AC
Tritanopia (blue-blind)
#BB416C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42eaf;
/* rgb */ color: rgb(180, 46, 175);
/* oklch */ color: oklch(55.7% 0.218 329.7);
Tailwind
colors: {
  custom: {
    50: '#ce75c7',
    500: '#b42eaf',
    950: '#000000',
  },
}
SCSS
$custom: #b42eaf;
$custom-light: #ce75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b42eaf",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 302.239,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55725,
    "c": 0.21806,
    "h": 329.7
  },
  "luminance": 0.14752
}

Semantic roles & 50–950 ramp

primary
#B42EAF
secondary
#77C77A
accent
#E24B45
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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