#B42EA4#B42EA4

#B42EA4 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.210 H 333.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B42EA4
RGBrgb(180, 46, 164)
HSLhsl(307, 59%, 44%)
HSVhsv(307, 74%, 71%)
CMYKcmyk(0%, 74.4%, 8.9%, 29.4%)
CIE-LABlab(44.72, 64.94, -34.23)
CIE-LCHlch(44.72, 73.41, 332.20°)
OKLaboklab(55.12% 0.1879 -0.0939)
OKLCHoklch(55.12% 0.21 333.4)
XYZxyz(26.5004, 14.3399, 36.4869)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EA4 #2EB43E
analogous
#812EB4 #B42EA4 #B42E61
triadic
#B42EA4 #A4B42E #2EA4B4
tetradic
#B42EA4 #B4812E #2EB43E #2E61B4
square
#B42EA4 #B4812E #2EB43E #2E61B4
split-complementary
#B42EA4 #61B42E #2EB481
monochromatic
#53154B #832278 #B42EA4 #D24EC2 #DE7ED3

Accessibility & contrast

On white

5.43
#B42EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B42EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EA4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EA4#FFFFFF#000000##FFFFFF
##B42EA41.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA7
Deuteranopia (green-blind)
#5C71A1
Tritanopia (blue-blind)
#BC3B66
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42ea4;
/* rgb */ color: rgb(180, 46, 164);
/* oklch */ color: oklch(55.1% 0.210 333.4);
Tailwind
colors: {
  custom: {
    50: '#ce75bf',
    500: '#b42ea4',
    950: '#000000',
  },
}
SCSS
$custom: #b42ea4;
$custom-light: #ce75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ea4",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 307.164,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55121,
    "c": 0.21002,
    "h": 333.4
  },
  "luminance": 0.14338
}

Semantic roles & 50–950 ramp

primary
#B42EA4
secondary
#77C781
accent
#E25845
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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