#B42BB7#B42BB7

#B42BB7 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 56.0% C 0.227 H 327.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B42BB7
RGBrgb(180, 43, 183)
HSLhsl(299, 62%, 44%)
HSVhsv(299, 77%, 72%)
CMYKcmyk(1.6%, 76.5%, 0%, 28.2%)
CIE-LABlab(45.43, 68.83, -44.34)
CIE-LCHlch(45.43, 81.87, 327.21°)
OKLaboklab(55.97% 0.1906 -0.1232)
OKLCHoklch(55.97% 0.227 327.1)
XYZxyz(28.2331, 14.8520, 46.1703)
Luminance0.1485 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BB7 #2EB72B
analogous
#6E2BB7 #B42BB7 #B72B74
triadic
#B42BB7 #B7B42B #2BB7B4
tetradic
#B42BB7 #B76E2B #2EB72B #2B74B7
square
#B42BB7 #B76E2B #2EB72B #2B74B7
split-complementary
#B42BB7 #74B72B #2BB76E
monochromatic
#531454 #831F85 #B42BB7 #D24BD5 #DE7CE0

Accessibility & contrast

On white

5.29
#B42BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B42BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BB7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BB7#FFFFFF#000000##FFFFFF
##B42BB71.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42bb7;
/* rgb */ color: rgb(180, 43, 183);
/* oklch */ color: oklch(56.0% 0.227 327.1);
Tailwind
colors: {
  custom: {
    50: '#ce74cd',
    500: '#b42bb7',
    950: '#000000',
  },
}
SCSS
$custom: #b42bb7;
$custom-light: #ce74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bb7",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 298.714,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55965,
    "c": 0.22697,
    "h": 327.1
  },
  "luminance": 0.1485
}

Semantic roles & 50–950 ramp

primary
#B42BB7
secondary
#77C975
accent
#E54346
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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