#B042B6#B042B6

#B042B6 is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.4% C 0.198 H 325.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B042B6
RGBrgb(176, 66, 182)
HSLhsl(297, 47%, 49%)
HSVhsv(297, 64%, 71%)
CMYKcmyk(3.3%, 63.7%, 0%, 28.6%)
CIE-LABlab(47.63, 59.59, -40.30)
CIE-LCHlch(47.63, 71.94, 325.93°)
OKLaboklab(57.4% 0.1634 -0.1117)
OKLCHoklch(57.4% 0.198 325.6)
XYZxyz(28.2956, 16.5057, 45.9424)
Luminance0.1650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042B6 #48B642
analogous
#7642B6 #B042B6 #B64282
triadic
#B042B6 #B6B042 #42B6B0
tetradic
#B042B6 #B67642 #48B642 #4282B6
square
#B042B6 #B67642 #48B642 #4282B6
split-complementary
#B042B6 #82B642 #42B676
monochromatic
#59215C #853289 #B042B6 #C56CCA #D699DA

Accessibility & contrast

On white

4.88
#B042B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B042B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042B6
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042B6#FFFFFF#000000##FFFFFF
##B042B61.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E68B9
Deuteranopia (green-blind)
#5976B3
Tritanopia (blue-blind)
#B45376
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b042b6;
/* rgb */ color: rgb(176, 66, 182);
/* oklch */ color: oklch(57.4% 0.198 325.6);
Tailwind
colors: {
  custom: {
    50: '#cb7ecc',
    500: '#b042b6',
    950: '#000000',
  },
}
SCSS
$custom: #b042b6;
$custom-light: #cb7ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#b042b6",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 296.897,
    "s": 46.774,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57403,
    "c": 0.19791,
    "h": 325.6
  },
  "luminance": 0.16504
}

Semantic roles & 50–950 ramp

primary
#B042B6
secondary
#91C68E
accent
#D65158
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #B042B6

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

Preview Lab → · Contrast checker → · Palette generator →

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