#B42BB6#B42BB6

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

Color values

HEX#B42BB6
RGBrgb(180, 43, 182)
HSLhsl(299, 62%, 44%)
HSVhsv(299, 76%, 71%)
CMYKcmyk(1.1%, 76.4%, 0%, 28.6%)
CIE-LABlab(45.37, 68.66, -43.84)
CIE-LCHlch(45.37, 81.47, 327.44°)
OKLaboklab(55.91% 0.1907 -0.1217)
OKLCHoklch(55.91% 0.226 327.5)
XYZxyz(28.1294, 14.8105, 45.6240)
Luminance0.1481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BB6 #2DB62B
analogous
#6F2BB6 #B42BB6 #B62B73
triadic
#B42BB6 #B6B42B #2BB6B4
tetradic
#B42BB6 #B66F2B #2DB62B #2B73B6
square
#B42BB6 #B66F2B #2DB62B #2B73B6
split-complementary
#B42BB6 #73B62B #2BB66F
monochromatic
#521453 #831F84 #B42BB6 #D24AD4 #DE7BE0

Accessibility & contrast

On white

5.30
#B42BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42BB6
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BB6#FFFFFF#000000##FFFFFF
##B42BB61.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#5171B3
Tritanopia (blue-blind)
#B94370
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42bb6;
/* rgb */ color: rgb(180, 43, 182);
/* oklch */ color: oklch(55.9% 0.226 327.5);
Tailwind
colors: {
  custom: {
    50: '#ce74cc',
    500: '#b42bb6',
    950: '#000000',
  },
}
SCSS
$custom: #b42bb6;
$custom-light: #ce74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bb6",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 299.137,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55906,
    "c": 0.22622,
    "h": 327.5
  },
  "luminance": 0.14808
}

Semantic roles & 50–950 ramp

primary
#B42BB6
secondary
#76C875
accent
#E54345
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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