#B42DCC#B42DCC

#B42DCC is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.4% C 0.241 H 321.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B42DCC
RGBrgb(180, 45, 204)
HSLhsl(291, 64%, 49%)
HSVhsv(291, 78%, 80%)
CMYKcmyk(11.8%, 77.9%, 0%, 20%)
CIE-LABlab(46.90, 71.80, -54.22)
CIE-LCHlch(46.90, 89.97, 322.94°)
OKLaboklab(57.41% 0.1875 -0.152)
OKLCHoklch(57.41% 0.241 321)
XYZxyz(30.6586, 15.9414, 58.5772)
Luminance0.1594 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42DCC #45CC2D
analogous
#652DCC #B42DCC #CC2D95
triadic
#B42DCC #CCB42D #2DCCB4
tetradic
#B42DCC #CC652D #45CC2D #2D95CC
square
#B42DCC #CC652D #45CC2D #2D95CC
split-complementary
#B42DCC #95CC2D #2DCC65
monochromatic
#5C1768 #88229A #B42DCC #C85BDB #D98DE6

Accessibility & contrast

On white

5.01
#B42DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B42DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42DCC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42DCC#FFFFFF#000000##FFFFFF
##B42DCC1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#4174C8
Tritanopia (blue-blind)
#B54F7D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b42dcc;
/* rgb */ color: rgb(180, 45, 204);
/* oklch */ color: oklch(57.4% 0.241 321.0);
Tailwind
colors: {
  custom: {
    50: '#cf76dc',
    500: '#b42dcc',
    950: '#000000',
  },
}
SCSS
$custom: #b42dcc;
$custom-light: #cf76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42dcc",
  "rgb": {
    "r": 180,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 290.943,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5741,
    "c": 0.24136,
    "h": 321
  },
  "luminance": 0.1594
}

Semantic roles & 50–950 ramp

primary
#B42DCC
secondary
#90D085
accent
#E7415A
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B42DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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