#B42AB7#B42AB7

#B42AB7 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.9% C 0.228 H 327.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B42AB7
RGBrgb(180, 42, 183)
HSLhsl(299, 63%, 44%)
HSVhsv(299, 77%, 72%)
CMYKcmyk(1.6%, 77%, 0%, 28.2%)
CIE-LABlab(45.33, 69.11, -44.50)
CIE-LCHlch(45.33, 82.20, 327.22°)
OKLaboklab(55.89% 0.1915 -0.1236)
OKLCHoklch(55.89% 0.228 327.2)
XYZxyz(28.1972, 14.7802, 46.1583)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AB7 #2DB72A
analogous
#6D2AB7 #B42AB7 #B72A74
triadic
#B42AB7 #B7B42A #2AB7B4
tetradic
#B42AB7 #B76D2A #2DB72A #2A74B7
square
#B42AB7 #B76D2A #2DB72A #2A74B7
split-complementary
#B42AB7 #74B72A #2AB76D
monochromatic
#521353 #831F85 #B42AB7 #D249D5 #DE7BE1

Accessibility & contrast

On white

5.31
#B42AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B42AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AB7
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AB7#FFFFFF#000000##FFFFFF
##B42AB71.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#5071B4
Tritanopia (blue-blind)
#B94370
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42ab7;
/* rgb */ color: rgb(180, 42, 183);
/* oklch */ color: oklch(55.9% 0.228 327.2);
Tailwind
colors: {
  custom: {
    50: '#cf74cd',
    500: '#b42ab7',
    950: '#000000',
  },
}
SCSS
$custom: #b42ab7;
$custom-light: #cf74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ab7",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 298.723,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55894,
    "c": 0.2279,
    "h": 327.2
  },
  "luminance": 0.14778
}

Semantic roles & 50–950 ramp

primary
#B42AB7
secondary
#76C974
accent
#E64246
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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