#B042C2#B042C2

#B042C2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.208 H 321.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B042C2
RGBrgb(176, 66, 194)
HSLhsl(292, 51%, 51%)
HSVhsv(292, 66%, 76%)
CMYKcmyk(9.3%, 66%, 0%, 23.9%)
CIE-LABlab(48.29, 61.76, -46.24)
CIE-LCHlch(48.29, 77.16, 323.18°)
OKLaboklab(58.09% 0.1636 -0.129)
OKLCHoklch(58.09% 0.208 321.8)
XYZxyz(29.5893, 17.0231, 52.7557)
Luminance0.1702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042C2 #54C242
analogous
#7042C2 #B042C2 #C24294
triadic
#B042C2 #C2B042 #42C2B0
tetradic
#B042C2 #C27042 #54C242 #4294C2
square
#B042C2 #C27042 #54C242 #4294C2
split-complementary
#B042C2 #94C242 #42C270
monochromatic
#5E2268 #883196 #B042C2 #C370D1 #D79FE0

Accessibility & contrast

On white

4.77
#B042C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B042C2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042C2#FFFFFF#000000##FFFFFF
##B042C21.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E6BC6
Deuteranopia (green-blind)
#5277BF
Tritanopia (blue-blind)
#B2577D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b042c2;
/* rgb */ color: rgb(176, 66, 194);
/* oklch */ color: oklch(58.1% 0.208 321.8);
Tailwind
colors: {
  custom: {
    50: '#cb7fd5',
    500: '#b042c2',
    950: '#000000',
  },
}
SCSS
$custom: #b042c2;
$custom-light: #cb7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#b042c2",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 291.563,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58091,
    "c": 0.20833,
    "h": 321.8
  },
  "luminance": 0.17022
}

Semantic roles & 50–950 ramp

primary
#B042C2
secondary
#9CCC94
accent
#DB4D61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B042C2

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

Preview Lab → · Contrast checker → · Palette generator →

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