#B42AAC#B42AAC

#B42AAC is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.3% C 0.220 H 330.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B42AAC
RGBrgb(180, 42, 172)
HSLhsl(303, 62%, 44%)
HSVhsv(303, 77%, 71%)
CMYKcmyk(0%, 76.7%, 4.4%, 29.4%)
CIE-LABlab(44.72, 67.37, -38.99)
CIE-LCHlch(44.72, 77.83, 329.94°)
OKLaboklab(55.26% 0.1916 -0.1076)
OKLCHoklch(55.26% 0.22 330.7)
XYZxyz(27.0967, 14.3400, 40.3625)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AAC #2AB432
analogous
#772AB4 #B42AAC #B42A67
triadic
#B42AAC #ACB42A #2AACB4
tetradic
#B42AAC #B4772A #2AB432 #2A67B4
square
#B42AAC #B4772A #2AB432 #2A67B4
split-complementary
#B42AAC #67B42A #2AB477
monochromatic
#51134D #821E7D #B42AAC #D447CC #E079DA

Accessibility & contrast

On white

5.43
#B42AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B42AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AAC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AAC#FFFFFF#000000##FFFFFF
##B42AAC1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185EAF
Deuteranopia (green-blind)
#5670A9
Tritanopia (blue-blind)
#BB3D6A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42aac;
/* rgb */ color: rgb(180, 42, 172);
/* oklch */ color: oklch(55.3% 0.220 330.7);
Tailwind
colors: {
  custom: {
    50: '#ce74c5',
    500: '#b42aac',
    950: '#000000',
  },
}
SCSS
$custom: #b42aac;
$custom-light: #ce74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aac",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 303.478,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55258,
    "c": 0.21977,
    "h": 330.7
  },
  "luminance": 0.14338
}

Semantic roles & 50–950 ramp

primary
#B42AAC
secondary
#72C877
accent
#E54C43
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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