#B42AA6#B42AA6

#B42AA6 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.215 H 332.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#B42AA6
RGBrgb(180, 42, 166)
HSLhsl(306, 62%, 44%)
HSVhsv(306, 77%, 71%)
CMYKcmyk(0%, 76.7%, 7.8%, 29.4%)
CIE-LABlab(44.40, 66.45, -35.93)
CIE-LCHlch(44.40, 75.54, 331.60°)
OKLaboklab(54.93% 0.1915 -0.0987)
OKLCHoklch(54.93% 0.215 332.7)
XYZxyz(26.5334, 14.1147, 37.3960)
Luminance0.1411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AA6 #2AB438
analogous
#7D2AB4 #B42AA6 #B42A61
triadic
#B42AA6 #A6B42A #2AA6B4
tetradic
#B42AA6 #B47D2A #2AB438 #2A61B4
square
#B42AA6 #B47D2A #2AB438 #2A61B4
split-complementary
#B42AA6 #61B42A #2AB47D
monochromatic
#51134A #821E78 #B42AA6 #D447C6 #E079D5

Accessibility & contrast

On white

5.49
#B42AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B42AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AA6
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AA6#FFFFFF#000000##FFFFFF
##B42AA61.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225DA9
Deuteranopia (green-blind)
#5970A3
Tritanopia (blue-blind)
#BC3A66
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42aa6;
/* rgb */ color: rgb(180, 42, 166);
/* oklch */ color: oklch(54.9% 0.215 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce73c1',
    500: '#b42aa6',
    950: '#000000',
  },
}
SCSS
$custom: #b42aa6;
$custom-light: #ce73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aa6",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 306.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54926,
    "c": 0.21546,
    "h": 332.7
  },
  "luminance": 0.14112
}

Semantic roles & 50–950 ramp

primary
#B42AA6
secondary
#72C87B
accent
#E55343
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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