#B42EB2#B42EB2

#B42EB2 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.220 H 328.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B42EB2
RGBrgb(180, 46, 178)
HSLhsl(301, 59%, 44%)
HSVhsv(301, 74%, 71%)
CMYKcmyk(0%, 74.4%, 1.1%, 29.4%)
CIE-LABlab(45.46, 67.12, -41.35)
CIE-LCHlch(45.46, 78.84, 328.36°)
OKLaboklab(55.9% 0.1882 -0.1145)
OKLCHoklch(55.9% 0.22 328.7)
XYZxyz(27.8350, 14.8737, 43.5157)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EB2 #2EB430
analogous
#732EB4 #B42EB2 #B42E6F
triadic
#B42EB2 #B2B42E #2EB2B4
tetradic
#B42EB2 #B4732E #2EB430 #2E6FB4
square
#B42EB2 #B4732E #2EB430 #2E6FB4
split-complementary
#B42EB2 #6FB42E #2EB473
monochromatic
#531552 #832282 #B42EB2 #D24ED0 #DE7EDD

Accessibility & contrast

On white

5.28
#B42EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B42EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EB2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EB2#FFFFFF#000000##FFFFFF
##B42EB21.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1460B6
Deuteranopia (green-blind)
#5472AF
Tritanopia (blue-blind)
#BA436E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42eb2;
/* rgb */ color: rgb(180, 46, 178);
/* oklch */ color: oklch(55.9% 0.220 328.7);
Tailwind
colors: {
  custom: {
    50: '#ce75c9',
    500: '#b42eb2',
    950: '#000000',
  },
}
SCSS
$custom: #b42eb2;
$custom-light: #ce75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42eb2",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 300.896,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55895,
    "c": 0.22031,
    "h": 328.7
  },
  "luminance": 0.14872
}

Semantic roles & 50–950 ramp

primary
#B42EB2
secondary
#77C778
accent
#E24845
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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