#B42BB1#B42BB1

#B42BB1 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.223 H 329.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B42BB1
RGBrgb(180, 43, 177)
HSLhsl(301, 61%, 44%)
HSVhsv(301, 76%, 71%)
CMYKcmyk(0%, 76.1%, 1.7%, 29.4%)
CIE-LABlab(45.09, 67.86, -41.35)
CIE-LCHlch(45.09, 79.47, 328.65°)
OKLaboklab(55.61% 0.1908 -0.1145)
OKLCHoklch(55.61% 0.223 329)
XYZxyz(27.6218, 14.6075, 42.9512)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BB1 #2BB42E
analogous
#722BB4 #B42BB1 #B42B6C
triadic
#B42BB1 #B1B42B #2BB1B4
tetradic
#B42BB1 #B4722B #2BB42E #2B6CB4
square
#B42BB1 #B4722B #2BB42E #2B6CB4
split-complementary
#B42BB1 #6CB42B #2BB472
monochromatic
#511350 #831F80 #B42BB1 #D349D0 #DF7ADD

Accessibility & contrast

On white

5.36
#B42BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B42BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BB1
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BB1#FFFFFF#000000##FFFFFF
##B42BB11.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5FB5
Deuteranopia (green-blind)
#5471AE
Tritanopia (blue-blind)
#BA406D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42bb1;
/* rgb */ color: rgb(180, 43, 177);
/* oklch */ color: oklch(55.6% 0.223 329.0);
Tailwind
colors: {
  custom: {
    50: '#ce74c9',
    500: '#b42bb1',
    950: '#000000',
  },
}
SCSS
$custom: #b42bb1;
$custom-light: #ce74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bb1",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 301.314,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55614,
    "c": 0.2225,
    "h": 329
  },
  "luminance": 0.14605
}

Semantic roles & 50–950 ramp

primary
#B42BB1
secondary
#73C775
accent
#E54743
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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