#B042BF#B042BF

#B042BF is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 57.9% C 0.206 H 322.7°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#B042BF
RGBrgb(176, 66, 191)
HSLhsl(293, 49%, 50%)
HSVhsv(293, 65%, 75%)
CMYKcmyk(7.9%, 65.4%, 0%, 25.1%)
CIE-LABlab(48.12, 61.21, -44.77)
CIE-LCHlch(48.12, 75.84, 323.82°)
OKLaboklab(57.92% 0.1636 -0.1247)
OKLCHoklch(57.92% 0.206 322.7)
XYZxyz(29.2557, 16.8897, 50.9992)
Luminance0.1689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042BF #51BF42
analogous
#7142BF #B042BF #BF428F
triadic
#B042BF #BFB042 #42BFB0
tetradic
#B042BF #BF7142 #51BF42 #428FBF
square
#B042BF #BF7142 #51BF42 #428FBF
split-complementary
#B042BF #8FBF42 #42BF71
monochromatic
#5D2265 #873292 #B042BF #C370CE #D69DDE

Accessibility & contrast

On white

4.80
#B042BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#B042BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B042BF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042BF#FFFFFF#000000##FFFFFF
##B042BF1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236AC3
Deuteranopia (green-blind)
#5477BC
Tritanopia (blue-blind)
#B2567B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b042bf;
/* rgb */ color: rgb(176, 66, 191);
/* oklch */ color: oklch(57.9% 0.206 322.7);
Tailwind
colors: {
  custom: {
    50: '#cb7ed3',
    500: '#b042bf',
    950: '#000000',
  },
}
SCSS
$custom: #b042bf;
$custom-light: #cb7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#b042bf",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 292.8,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57915,
    "c": 0.2057,
    "h": 322.7
  },
  "luminance": 0.16888
}

Semantic roles & 50–950 ramp

primary
#B042BF
secondary
#99CA93
accent
#D94F5F
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B042BF

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

Preview Lab → · Contrast checker → · Palette generator →

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