#B42BB2#B42BB2

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

Color values

HEX#B42BB2
RGBrgb(180, 43, 178)
HSLhsl(301, 61%, 44%)
HSVhsv(301, 76%, 71%)
CMYKcmyk(0%, 76.1%, 1.1%, 29.4%)
CIE-LABlab(45.15, 68.02, -41.85)
CIE-LCHlch(45.15, 79.86, 328.40°)
OKLaboklab(55.67% 0.1908 -0.1159)
OKLCHoklch(55.67% 0.223 328.7)
XYZxyz(27.7219, 14.6475, 43.4780)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42BB2 #2BB42D
analogous
#712BB4 #B42BB2 #B42B6D
triadic
#B42BB2 #B2B42B #2BB2B4
tetradic
#B42BB2 #B4712B #2BB42D #2B6DB4
square
#B42BB2 #B4712B #2BB42D #2B6DB4
split-complementary
#B42BB2 #6DB42B #2BB471
monochromatic
#511350 #831F81 #B42BB2 #D349D1 #DF7ADE

Accessibility & contrast

On white

5.34
#B42BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B42BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42BB2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42BB2#FFFFFF#000000##FFFFFF
##B42BB21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5FB6
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#BA416D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42bb2;
/* rgb */ color: rgb(180, 43, 178);
/* oklch */ color: oklch(55.7% 0.223 328.7);
Tailwind
colors: {
  custom: {
    50: '#ce74c9',
    500: '#b42bb2',
    950: '#000000',
  },
}
SCSS
$custom: #b42bb2;
$custom-light: #ce74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42bb2",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 300.876,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55672,
    "c": 0.22324,
    "h": 328.7
  },
  "luminance": 0.14645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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