#B042C1#B042C1

#B042C1 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.0% C 0.207 H 322.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B042C1
RGBrgb(176, 66, 193)
HSLhsl(292, 51%, 51%)
HSVhsv(292, 66%, 76%)
CMYKcmyk(8.8%, 65.8%, 0%, 24.3%)
CIE-LABlab(48.23, 61.58, -45.75)
CIE-LCHlch(48.23, 76.71, 323.39°)
OKLaboklab(58.03% 0.1636 -0.1275)
OKLCHoklch(58.03% 0.207 322.1)
XYZxyz(29.4773, 16.9784, 52.1662)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042C1 #53C142
analogous
#7142C1 #B042C1 #C14292
triadic
#B042C1 #C1B042 #42C1B0
tetradic
#B042C1 #C17142 #53C142 #4292C1
square
#B042C1 #C17142 #53C142 #4292C1
split-complementary
#B042C1 #92C142 #42C171
monochromatic
#5E2267 #883195 #B042C1 #C370D0 #D79EDF

Accessibility & contrast

On white

4.78
#B042C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B042C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042C1
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042C1#FFFFFF#000000##FFFFFF
##B042C11.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206AC5
Deuteranopia (green-blind)
#5277BE
Tritanopia (blue-blind)
#B2577C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b042c1;
/* rgb */ color: rgb(176, 66, 193);
/* oklch */ color: oklch(58.0% 0.207 322.1);
Tailwind
colors: {
  custom: {
    50: '#cb7fd4',
    500: '#b042c1',
    950: '#000000',
  },
}
SCSS
$custom: #b042c1;
$custom-light: #cb7fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#b042c1",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 291.969,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58032,
    "c": 0.20746,
    "h": 322.1
  },
  "luminance": 0.16977
}

Semantic roles & 50–950 ramp

primary
#B042C1
secondary
#9BCC93
accent
#DA4E60
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B042C1

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

Preview Lab → · Contrast checker → · Palette generator →

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