#B42EB9#B42EB9

#B42EB9 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.226 H 326.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B42EB9
RGBrgb(180, 46, 185)
HSLhsl(298, 60%, 45%)
HSVhsv(298, 75%, 73%)
CMYKcmyk(2.7%, 75.1%, 0%, 27.5%)
CIE-LABlab(45.86, 68.26, -44.84)
CIE-LCHlch(45.86, 81.67, 326.70°)
OKLaboklab(56.3% 0.1881 -0.1246)
OKLCHoklch(56.3% 0.226 326.5)
XYZxyz(28.5558, 15.1621, 47.3121)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42EB9 #33B92E
analogous
#6F2EB9 #B42EB9 #B92E78
triadic
#B42EB9 #B9B42E #2EB9B4
tetradic
#B42EB9 #B96F2E #33B92E #2E78B9
square
#B42EB9 #B96F2E #33B92E #2E78B9
split-complementary
#B42EB9 #78B92E #2EB96F
monochromatic
#551657 #842288 #B42EB9 #CF51D4 #DC82E0

Accessibility & contrast

On white

5.21
#B42EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B42EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42EB9
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42EB9#FFFFFF#000000##FFFFFF
##B42EB91.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#5072B6
Tritanopia (blue-blind)
#B94672
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b42eb9;
/* rgb */ color: rgb(180, 46, 185);
/* oklch */ color: oklch(56.3% 0.226 326.5);
Tailwind
colors: {
  custom: {
    50: '#ce76ce',
    500: '#b42eb9',
    950: '#000000',
  },
}
SCSS
$custom: #b42eb9;
$custom-light: #ce76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42eb9",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 297.842,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56304,
    "c": 0.22562,
    "h": 326.5
  },
  "luminance": 0.1516
}

Semantic roles & 50–950 ramp

primary
#B42EB9
secondary
#7DC97A
accent
#E3444A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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