#B042C3#B042C3

#B042C3 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.1% C 0.209 H 321.4°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B042C3
RGBrgb(176, 66, 195)
HSLhsl(291, 52%, 51%)
HSVhsv(291, 66%, 76%)
CMYKcmyk(9.7%, 66.2%, 0%, 23.5%)
CIE-LABlab(48.35, 61.95, -46.73)
CIE-LCHlch(48.35, 77.60, 322.97°)
OKLaboklab(58.15% 0.1636 -0.1304)
OKLCHoklch(58.15% 0.209 321.4)
XYZxyz(29.7019, 17.0682, 53.3492)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042C3 #55C342
analogous
#6F42C3 #B042C3 #C34295
triadic
#B042C3 #C3B042 #42C3B0
tetradic
#B042C3 #C36F42 #55C342 #4295C3
square
#B042C3 #C36F42 #55C342 #4295C3
split-complementary
#B042C3 #95C342 #42C36F
monochromatic
#5F2169 #883098 #B042C3 #C370D2 #D79FE0

Accessibility & contrast

On white

4.76
#B042C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B042C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042C3
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042C3#FFFFFF#000000##FFFFFF
##B042C31.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C6BC7
Deuteranopia (green-blind)
#5177C0
Tritanopia (blue-blind)
#B2587D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b042c3;
/* rgb */ color: rgb(176, 66, 195);
/* oklch */ color: oklch(58.1% 0.209 321.4);
Tailwind
colors: {
  custom: {
    50: '#cb7fd6',
    500: '#b042c3',
    950: '#000000',
  },
}
SCSS
$custom: #b042c3;
$custom-light: #cb7fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#b042c3",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 291.163,
    "s": 51.807,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5815,
    "c": 0.20921,
    "h": 321.4
  },
  "luminance": 0.17067
}

Semantic roles & 50–950 ramp

primary
#B042C3
secondary
#9CCD94
accent
#DB4D62
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B042C3

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

Preview Lab → · Contrast checker → · Palette generator →

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