#B42EA5#B42EA5

#B42EA5 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.211 H 333.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B42EA5
RGBrgb(180, 46, 165)
HSLhsl(307, 59%, 44%)
HSVhsv(307, 74%, 71%)
CMYKcmyk(0%, 74.4%, 8.3%, 29.4%)
CIE-LABlab(44.77, 65.09, -34.75)
CIE-LCHlch(44.77, 73.78, 331.90°)
OKLaboklab(55.18% 0.1879 -0.0954)
OKLCHoklch(55.18% 0.211 333.1)
XYZxyz(26.5911, 14.3762, 36.9644)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EA5 #2EB43D
analogous
#802EB4 #B42EA5 #B42E62
triadic
#B42EA5 #A5B42E #2EA5B4
tetradic
#B42EA5 #B4802E #2EB43D #2E62B4
square
#B42EA5 #B4802E #2EB43D #2E62B4
split-complementary
#B42EA5 #62B42E #2EB480
monochromatic
#53154C #832278 #B42EA5 #D24EC3 #DE7ED3

Accessibility & contrast

On white

5.42
#B42EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42EA5
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EA5#FFFFFF#000000##FFFFFF
##B42EA51.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285EA8
Deuteranopia (green-blind)
#5B71A2
Tritanopia (blue-blind)
#BC3C67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42ea5;
/* rgb */ color: rgb(180, 46, 165);
/* oklch */ color: oklch(55.2% 0.211 333.1);
Tailwind
colors: {
  custom: {
    50: '#ce75c0',
    500: '#b42ea5',
    950: '#000000',
  },
}
SCSS
$custom: #b42ea5;
$custom-light: #ce75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ea5",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 306.716,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55175,
    "c": 0.21074,
    "h": 333.1
  },
  "luminance": 0.14374
}

Semantic roles & 50–950 ramp

primary
#B42EA5
secondary
#77C780
accent
#E25745
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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