#B042BC#B042BC

#B042BC is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.7% C 0.203 H 323.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B042BC
RGBrgb(176, 66, 188)
HSLhsl(294, 48%, 50%)
HSVhsv(294, 65%, 74%)
CMYKcmyk(6.4%, 64.9%, 0%, 26.3%)
CIE-LABlab(47.95, 60.66, -43.29)
CIE-LCHlch(47.95, 74.52, 324.49°)
OKLaboklab(57.74% 0.1636 -0.1204)
OKLCHoklch(57.74% 0.203 323.7)
XYZxyz(28.9290, 16.7590, 49.2783)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042BC #4EBC42
analogous
#7342BC #B042BC #BC428B
triadic
#B042BC #BCB042 #42BCB0
tetradic
#B042BC #BC7342 #4EBC42 #428BBC
square
#B042BC #BC7342 #4EBC42 #428BBC
split-complementary
#B042BC #8BBC42 #42BC73
monochromatic
#5B2261 #86328F #B042BC #C36FCC #D69CDC

Accessibility & contrast

On white

4.83
#B042BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B042BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042BC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042BC#FFFFFF#000000##FFFFFF
##B042BC1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2769C0
Deuteranopia (green-blind)
#5576B9
Tritanopia (blue-blind)
#B35579
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b042bc;
/* rgb */ color: rgb(176, 66, 188);
/* oklch */ color: oklch(57.7% 0.203 323.7);
Tailwind
colors: {
  custom: {
    50: '#cb7ed1',
    500: '#b042bc',
    950: '#000000',
  },
}
SCSS
$custom: #b042bc;
$custom-light: #cb7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#b042bc",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 294.098,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57742,
    "c": 0.20309,
    "h": 323.7
  },
  "luminance": 0.16757
}

Semantic roles & 50–950 ramp

primary
#B042BC
secondary
#97C991
accent
#D8505E
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #B042BC

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

Preview Lab → · Contrast checker → · Palette generator →

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