#B42AAF#B42AAF

#B42AAF is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.222 H 329.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B42AAF
RGBrgb(180, 42, 175)
HSLhsl(302, 62%, 44%)
HSVhsv(302, 77%, 71%)
CMYKcmyk(0%, 76.7%, 2.8%, 29.4%)
CIE-LABlab(44.88, 67.83, -40.50)
CIE-LCHlch(44.88, 79.01, 329.16°)
OKLaboklab(55.43% 0.1916 -0.112)
OKLCHoklch(55.43% 0.222 329.7)
XYZxyz(27.3881, 14.4565, 41.8970)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AAF #2AB42F
analogous
#742AB4 #B42AAF #B42A6A
triadic
#B42AAF #AFB42A #2AAFB4
tetradic
#B42AAF #B4742A #2AB42F #2A6AB4
square
#B42AAF #B4742A #2AB42F #2A6AB4
split-complementary
#B42AAF #6AB42A #2AB474
monochromatic
#51134F #821E7F #B42AAF #D447CF #E079DC

Accessibility & contrast

On white

5.40
#B42AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B42AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AAF
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AAF#FFFFFF#000000##FFFFFF
##B42AAF1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125EB3
Deuteranopia (green-blind)
#5571AC
Tritanopia (blue-blind)
#BB3F6B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42aaf;
/* rgb */ color: rgb(180, 42, 175);
/* oklch */ color: oklch(55.4% 0.222 329.7);
Tailwind
colors: {
  custom: {
    50: '#ce74c7',
    500: '#b42aaf',
    950: '#000000',
  },
}
SCSS
$custom: #b42aaf;
$custom-light: #ce74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aaf",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 302.174,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55428,
    "c": 0.22196,
    "h": 329.7
  },
  "luminance": 0.14454
}

Semantic roles & 50–950 ramp

primary
#B42AAF
secondary
#72C875
accent
#E54843
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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