#B42AAA#B42AAA

#B42AAA is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.218 H 331.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B42AAA
RGBrgb(180, 42, 170)
HSLhsl(304, 62%, 44%)
HSVhsv(304, 77%, 71%)
CMYKcmyk(0%, 76.7%, 5.6%, 29.4%)
CIE-LABlab(44.61, 67.06, -37.97)
CIE-LCHlch(44.61, 77.06, 330.48°)
OKLaboklab(55.15% 0.1916 -0.1047)
OKLCHoklch(55.15% 0.218 331.4)
XYZxyz(26.9061, 14.2637, 39.3585)
Luminance0.1426 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AAA #2AB434
analogous
#792AB4 #B42AAA #B42A65
triadic
#B42AAA #AAB42A #2AAAB4
tetradic
#B42AAA #B4792A #2AB434 #2A65B4
square
#B42AAA #B4792A #2AB434 #2A65B4
split-complementary
#B42AAA #65B42A #2AB479
monochromatic
#51134C #821E7B #B42AAA #D447CA #E079D8

Accessibility & contrast

On white

5.45
#B42AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B42AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AAA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AAA#FFFFFF#000000##FFFFFF
##B42AAA1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5DAD
Deuteranopia (green-blind)
#5770A7
Tritanopia (blue-blind)
#BB3C69
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42aaa;
/* rgb */ color: rgb(180, 42, 170);
/* oklch */ color: oklch(55.1% 0.218 331.4);
Tailwind
colors: {
  custom: {
    50: '#ce73c4',
    500: '#b42aaa',
    950: '#000000',
  },
}
SCSS
$custom: #b42aaa;
$custom-light: #ce73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aaa",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 304.348,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55146,
    "c": 0.21833,
    "h": 331.4
  },
  "luminance": 0.14262
}

Semantic roles & 50–950 ramp

primary
#B42AAA
secondary
#72C878
accent
#E54E43
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B42AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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