#B42AB6#B42AB6

#B42AB6 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.8% C 0.227 H 327.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B42AB6
RGBrgb(180, 42, 182)
HSLhsl(299, 63%, 44%)
HSVhsv(299, 77%, 71%)
CMYKcmyk(1.1%, 76.9%, 0%, 28.6%)
CIE-LABlab(45.27, 68.95, -44.00)
CIE-LCHlch(45.27, 81.79, 327.45°)
OKLaboklab(55.84% 0.1915 -0.1222)
OKLCHoklch(55.84% 0.227 327.5)
XYZxyz(28.0934, 14.7387, 45.6121)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AB6 #2CB62A
analogous
#6E2AB6 #B42AB6 #B62A72
triadic
#B42AB6 #B6B42A #2AB6B4
tetradic
#B42AB6 #B66E2A #2CB62A #2A72B6
square
#B42AB6 #B66E2A #2CB62A #2A72B6
split-complementary
#B42AB6 #72B62A #2AB66E
monochromatic
#521353 #831F84 #B42AB6 #D348D5 #DF7AE0

Accessibility & contrast

On white

5.32
#B42AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B42AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AB6
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AB6#FFFFFF#000000##FFFFFF
##B42AB61.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#5071B3
Tritanopia (blue-blind)
#B9426F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42ab6;
/* rgb */ color: rgb(180, 42, 182);
/* oklch */ color: oklch(55.8% 0.227 327.5);
Tailwind
colors: {
  custom: {
    50: '#cf74cc',
    500: '#b42ab6',
    950: '#000000',
  },
}
SCSS
$custom: #b42ab6;
$custom-light: #cf74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ab6",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 299.143,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55835,
    "c": 0.22715,
    "h": 327.5
  },
  "luminance": 0.14737
}

Semantic roles & 50–950 ramp

primary
#B42AB6
secondary
#75C873
accent
#E64245
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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