#B042C0#B042C0

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

Color values

HEX#B042C0
RGBrgb(176, 66, 192)
HSLhsl(292, 50%, 51%)
HSVhsv(292, 66%, 75%)
CMYKcmyk(8.3%, 65.6%, 0%, 24.7%)
CIE-LABlab(48.18, 61.39, -45.26)
CIE-LCHlch(48.18, 76.27, 323.60°)
OKLaboklab(57.97% 0.1636 -0.1261)
OKLCHoklch(57.97% 0.207 322.4)
XYZxyz(29.3662, 16.9339, 51.5807)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042C0 #52C042
analogous
#7142C0 #B042C0 #C04291
triadic
#B042C0 #C0B042 #42C0B0
tetradic
#B042C0 #C07142 #52C042 #4291C0
square
#B042C0 #C07142 #52C042 #4291C0
split-complementary
#B042C0 #91C042 #42C071
monochromatic
#5D2266 #873194 #B042C0 #C370CF #D69EDF

Accessibility & contrast

On white

4.79
#B042C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B042C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042C0
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042C0#FFFFFF#000000##FFFFFF
##B042C01.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216AC4
Deuteranopia (green-blind)
#5377BD
Tritanopia (blue-blind)
#B2577C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b042c0;
/* rgb */ color: rgb(176, 66, 192);
/* oklch */ color: oklch(58.0% 0.207 322.4);
Tailwind
colors: {
  custom: {
    50: '#cb7fd3',
    500: '#b042c0',
    950: '#000000',
  },
}
SCSS
$custom: #b042c0;
$custom-light: #cb7fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#b042c0",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 292.381,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57973,
    "c": 0.20658,
    "h": 322.4
  },
  "luminance": 0.16932
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B042C0

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

Preview Lab → · Contrast checker → · Palette generator →

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