#B042DF#B042DF

#B042DF is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.9% C 0.234 H 313.7°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B042DF
RGBrgb(176, 66, 223)
HSLhsl(282, 71%, 57%)
HSVhsv(282, 70%, 87%)
CMYKcmyk(21.1%, 70.4%, 0%, 12.5%)
CIE-LABlab(50.04, 67.35, -60.06)
CIE-LCHlch(50.04, 90.24, 318.27°)
OKLaboklab(59.91% 0.1619 -0.1694)
OKLCHoklch(59.91% 0.234 313.7)
XYZxyz(33.1697, 18.4553, 71.6127)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042DF #71DF42
analogous
#6242DF #B042DF #DF42C0
triadic
#B042DF #DFB042 #42DFB0
tetradic
#B042DF #DF6242 #71DF42 #42C0DF
square
#B042DF #DF6242 #71DF42 #42C0DF
split-complementary
#B042DF #C0DF42 #42DF62
monochromatic
#6B188E #9221C3 #B042DF #C676E8 #DCABF1

Accessibility & contrast

On white

4.48
#B042DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#B042DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B042DF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042DF#FFFFFF#000000##000000
##B042DF1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E3
Deuteranopia (green-blind)
#377ADC
Tritanopia (blue-blind)
#AB638C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b042df;
/* rgb */ color: rgb(176, 66, 223);
/* oklch */ color: oklch(59.9% 0.234 313.7);
Tailwind
colors: {
  custom: {
    50: '#cc80ea',
    500: '#b042df',
    950: '#000000',
  },
}
SCSS
$custom: #b042df;
$custom-light: #cc80ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b042df",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 282.038,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59909,
    "c": 0.23436,
    "h": 313.7
  },
  "luminance": 0.18454
}

Semantic roles & 50–950 ramp

primary
#B042DF
secondary
#B2DF9E
accent
#EE3A70
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B042DF

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

Preview Lab → · Contrast checker → · Palette generator →

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