#B42AB5#B42AB5

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

Color values

HEX#B42AB5
RGBrgb(180, 42, 181)
HSLhsl(300, 62%, 44%)
HSVhsv(300, 77%, 71%)
CMYKcmyk(0.6%, 76.8%, 0%, 29%)
CIE-LABlab(45.22, 68.79, -43.51)
CIE-LCHlch(45.22, 81.39, 327.69°)
OKLaboklab(55.78% 0.1915 -0.1207)
OKLCHoklch(55.78% 0.226 327.8)
XYZxyz(27.9905, 14.6975, 45.0698)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AB5 #2BB52A
analogous
#6E2AB5 #B42AB5 #B52A70
triadic
#B42AB5 #B5B42A #2AB5B4
tetradic
#B42AB5 #B56E2A #2BB52A #2A70B5
square
#B42AB5 #B56E2A #2BB52A #2A70B5
split-complementary
#B42AB5 #70B52A #2AB56E
monochromatic
#511352 #831E83 #B42AB5 #D348D4 #DF79E0

Accessibility & contrast

On white

5.33
#B42AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B42AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AB5
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AB5#FFFFFF#000000##FFFFFF
##B42AB51.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B9
Deuteranopia (green-blind)
#5171B2
Tritanopia (blue-blind)
#BA426F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42ab5;
/* rgb */ color: rgb(180, 42, 181);
/* oklch */ color: oklch(55.8% 0.226 327.8);
Tailwind
colors: {
  custom: {
    50: '#ce74cc',
    500: '#b42ab5',
    950: '#000000',
  },
}
SCSS
$custom: #b42ab5;
$custom-light: #ce74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ab5",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 299.568,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55776,
    "c": 0.2264,
    "h": 327.8
  },
  "luminance": 0.14695
}

Semantic roles & 50–950 ramp

primary
#B42AB5
secondary
#73C873
accent
#E54244
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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