#B42EB8#B42EB8

#B42EB8 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.225 H 326.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B42EB8
RGBrgb(180, 46, 184)
HSLhsl(298, 60%, 45%)
HSVhsv(298, 75%, 72%)
CMYKcmyk(2.2%, 75%, 0%, 27.8%)
CIE-LABlab(45.80, 68.10, -44.34)
CIE-LCHlch(45.80, 81.26, 326.93°)
OKLaboklab(56.25% 0.1881 -0.1232)
OKLCHoklch(56.25% 0.225 326.8)
XYZxyz(28.4506, 15.1200, 46.7581)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EB8 #32B82E
analogous
#6F2EB8 #B42EB8 #B82E77
triadic
#B42EB8 #B8B42E #2EB8B4
tetradic
#B42EB8 #B86F2E #32B82E #2E77B8
square
#B42EB8 #B86F2E #32B82E #2E77B8
split-complementary
#B42EB8 #77B82E #2EB86F
monochromatic
#541656 #842287 #B42EB8 #CF50D3 #DD81DF

Accessibility & contrast

On white

5.22
#B42EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B42EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EB8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EB8#FFFFFF#000000##FFFFFF
##B42EB81.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BC
Deuteranopia (green-blind)
#5172B5
Tritanopia (blue-blind)
#B94672
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42eb8;
/* rgb */ color: rgb(180, 46, 184);
/* oklch */ color: oklch(56.2% 0.225 326.8);
Tailwind
colors: {
  custom: {
    50: '#ce76ce',
    500: '#b42eb8',
    950: '#000000',
  },
}
SCSS
$custom: #b42eb8;
$custom-light: #ce76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42eb8",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 298.261,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56245,
    "c": 0.22486,
    "h": 326.8
  },
  "luminance": 0.15118
}

Semantic roles & 50–950 ramp

primary
#B42EB8
secondary
#7CC879
accent
#E34549
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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