#B042C6#B042C6

#B042C6 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.212 H 320.5°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#B042C6
RGBrgb(176, 66, 198)
HSLhsl(290, 54%, 52%)
HSVhsv(290, 67%, 78%)
CMYKcmyk(11.1%, 66.7%, 0%, 22.4%)
CIE-LABlab(48.52, 62.51, -48.19)
CIE-LCHlch(48.52, 78.93, 322.37°)
OKLaboklab(58.33% 0.1636 -0.1347)
OKLCHoklch(58.33% 0.212 320.5)
XYZxyz(30.0445, 17.2052, 55.1535)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042C6 #58C642
analogous
#6E42C6 #B042C6 #C6429A
triadic
#B042C6 #C6B042 #42C6B0
tetradic
#B042C6 #C66E42 #58C642 #429AC6
square
#B042C6 #C66E42 #58C642 #429AC6
split-complementary
#B042C6 #9AC642 #42C66E
monochromatic
#60216D #8A2F9C #B042C6 #C471D4 #D7A0E2

Accessibility & contrast

On white

4.73
#B042C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#B042C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042C6
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042C6#FFFFFF#000000##FFFFFF
##B042C61.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166CCA
Deuteranopia (green-blind)
#4F77C3
Tritanopia (blue-blind)
#B1597F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b042c6;
/* rgb */ color: rgb(176, 66, 198);
/* oklch */ color: oklch(58.3% 0.212 320.5);
Tailwind
colors: {
  custom: {
    50: '#cb7fd8',
    500: '#b042c6',
    950: '#000000',
  },
}
SCSS
$custom: #b042c6;
$custom-light: #cb7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#b042c6",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 290,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58329,
    "c": 0.21187,
    "h": 320.5
  },
  "luminance": 0.17204
}

Semantic roles & 50–950 ramp

primary
#B042C6
secondary
#9FCF95
accent
#DD4B63
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B042C6

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

Preview Lab → · Contrast checker → · Palette generator →

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