#B42CB6#B42CB6

#B42CB6 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.225 H 327.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B42CB6
RGBrgb(180, 44, 182)
HSLhsl(299, 61%, 44%)
HSVhsv(299, 76%, 71%)
CMYKcmyk(1.1%, 75.8%, 0%, 28.6%)
CIE-LABlab(45.48, 68.37, -43.68)
CIE-LCHlch(45.48, 81.13, 327.43°)
OKLaboklab(55.98% 0.1899 -0.1212)
OKLCHoklch(55.98% 0.225 327.4)
XYZxyz(28.1662, 14.8841, 45.6363)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42CB6 #2EB62C
analogous
#6F2CB6 #B42CB6 #B62C73
triadic
#B42CB6 #B6B42C #2CB6B4
tetradic
#B42CB6 #B66F2C #2EB62C #2C73B6
square
#B42CB6 #B66F2C #2EB62C #2C73B6
split-complementary
#B42CB6 #73B62C #2CB66F
monochromatic
#531453 #832085 #B42CB6 #D24CD4 #DE7DE0

Accessibility & contrast

On white

5.28
#B42CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B42CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42CB6
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42CB6#FFFFFF#000000##FFFFFF
##B42CB61.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0161BA
Deuteranopia (green-blind)
#5172B3
Tritanopia (blue-blind)
#B94370
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b42cb6;
/* rgb */ color: rgb(180, 44, 182);
/* oklch */ color: oklch(56.0% 0.225 327.4);
Tailwind
colors: {
  custom: {
    50: '#ce75cc',
    500: '#b42cb6',
    950: '#000000',
  },
}
SCSS
$custom: #b42cb6;
$custom-light: #ce75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42cb6",
  "rgb": {
    "r": 180,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 299.13,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55978,
    "c": 0.22528,
    "h": 327.4
  },
  "luminance": 0.14882
}

Semantic roles & 50–950 ramp

primary
#B42CB6
secondary
#77C876
accent
#E44446
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B42CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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