#B42AB8#B42AB8

#B42AB8 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 56.0% C 0.229 H 326.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B42AB8
RGBrgb(180, 42, 184)
HSLhsl(298, 63%, 44%)
HSVhsv(298, 77%, 72%)
CMYKcmyk(2.2%, 77.2%, 0%, 27.8%)
CIE-LABlab(45.39, 69.27, -44.99)
CIE-LCHlch(45.39, 82.60, 327.00°)
OKLaboklab(55.95% 0.1914 -0.125)
OKLCHoklch(55.95% 0.229 326.8)
XYZxyz(28.3016, 14.8219, 46.7084)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AB8 #2EB82A
analogous
#6D2AB8 #B42AB8 #B82A75
triadic
#B42AB8 #B8B42A #2AB8B4
tetradic
#B42AB8 #B86D2A #2EB82A #2A75B8
square
#B42AB8 #B86D2A #2EB82A #2A75B8
split-complementary
#B42AB8 #75B82A #2AB86D
monochromatic
#531354 #831F86 #B42AB8 #D24AD6 #DE7BE1

Accessibility & contrast

On white

5.30
#B42AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B42AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AB8
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AB8#FFFFFF#000000##FFFFFF
##B42AB81.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#4F71B5
Tritanopia (blue-blind)
#B94371
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42ab8;
/* rgb */ color: rgb(180, 42, 184);
/* oklch */ color: oklch(56.0% 0.229 326.8);
Tailwind
colors: {
  custom: {
    50: '#cf74ce',
    500: '#b42ab8',
    950: '#000000',
  },
}
SCSS
$custom: #b42ab8;
$custom-light: #cf74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ab8",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 298.31,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55954,
    "c": 0.22865,
    "h": 326.8
  },
  "luminance": 0.1482
}

Semantic roles & 50–950 ramp

primary
#B42AB8
secondary
#77C975
accent
#E64247
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B42AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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