#B042BB#B042BB

#B042BB is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.7% C 0.202 H 324.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B042BB
RGBrgb(176, 66, 187)
HSLhsl(295, 48%, 50%)
HSVhsv(295, 65%, 73%)
CMYKcmyk(5.9%, 64.7%, 0%, 26.7%)
CIE-LABlab(47.90, 60.48, -42.79)
CIE-LCHlch(47.90, 74.09, 324.72°)
OKLaboklab(57.68% 0.1636 -0.1189)
OKLCHoklch(57.68% 0.202 324)
XYZxyz(28.8216, 16.7161, 48.7125)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042BB #4DBB42
analogous
#7342BB #B042BB #BB428A
triadic
#B042BB #BBB042 #42BBB0
tetradic
#B042BB #BB7342 #4DBB42 #428ABB
square
#B042BB #BB7342 #4DBB42 #428ABB
split-complementary
#B042BB #8ABB42 #42BB73
monochromatic
#5B2261 #85328E #B042BB #C36ECC #D69CDC

Accessibility & contrast

On white

4.84
#B042BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B042BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042BB
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042BB#FFFFFF#000000##FFFFFF
##B042BB1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2869BF
Deuteranopia (green-blind)
#5676B8
Tritanopia (blue-blind)
#B35579
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b042bb;
/* rgb */ color: rgb(176, 66, 187);
/* oklch */ color: oklch(57.7% 0.202 324.0);
Tailwind
colors: {
  custom: {
    50: '#cb7ed0',
    500: '#b042bb',
    950: '#000000',
  },
}
SCSS
$custom: #b042bb;
$custom-light: #cb7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#b042bb",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 294.545,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57685,
    "c": 0.20222,
    "h": 324
  },
  "luminance": 0.16714
}

Semantic roles & 50–950 ramp

primary
#B042BB
secondary
#96C891
accent
#D7505D
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #B042BB

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

Preview Lab → · Contrast checker → · Palette generator →

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