#B42BB4#B42BB4

#B42BB4 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.8% C 0.225 H 328.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B42BB4
RGBrgb(180, 43, 180)
HSLhsl(300, 61%, 44%)
HSVhsv(300, 76%, 71%)
CMYKcmyk(0%, 76.1%, 0%, 29.4%)
CIE-LABlab(45.26, 68.34, -42.85)
CIE-LCHlch(45.26, 80.66, 327.91°)
OKLaboklab(55.79% 0.1908 -0.1188)
OKLCHoklch(55.79% 0.225 328.1)
XYZxyz(27.9242, 14.7284, 44.5433)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BB4 #2BB42B
analogous
#6F2BB4 #B42BB4 #B42B6F
triadic
#B42BB4 #B4B42B #2BB4B4
tetradic
#B42BB4 #B46F2B #2BB42B #2B6FB4
square
#B42BB4 #B46F2B #2BB42B #2B6FB4
split-complementary
#B42BB4 #6FB42B #2BB46F
monochromatic
#511351 #831F83 #B42BB4 #D349D3 #DF7ADF

Accessibility & contrast

On white

5.32
#B42BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B42BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BB4
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BB4#FFFFFF#000000##FFFFFF
##B42BB41.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0560B8
Deuteranopia (green-blind)
#5271B1
Tritanopia (blue-blind)
#BA426F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42bb4;
/* rgb */ color: rgb(180, 43, 180);
/* oklch */ color: oklch(55.8% 0.225 328.1);
Tailwind
colors: {
  custom: {
    50: '#ce74cb',
    500: '#b42bb4',
    950: '#000000',
  },
}
SCSS
$custom: #b42bb4;
$custom-light: #ce74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bb4",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 300,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55788,
    "c": 0.22473,
    "h": 328.1
  },
  "luminance": 0.14726
}

Semantic roles & 50–950 ramp

primary
#B42BB4
secondary
#73C773
accent
#E54343
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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