#B042CE#B042CE

#B042CE is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.219 H 318.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B042CE
RGBrgb(176, 66, 206)
HSLhsl(287, 59%, 53%)
HSVhsv(287, 68%, 81%)
CMYKcmyk(14.6%, 68%, 0%, 19.2%)
CIE-LABlab(48.99, 64.02, -52.05)
CIE-LCHlch(48.99, 82.51, 320.89°)
OKLaboklab(58.82% 0.1633 -0.1459)
OKLCHoklch(58.82% 0.219 318.2)
XYZxyz(30.9917, 17.5841, 60.1421)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042CE #60CE42
analogous
#6A42CE #B042CE #CE42A6
triadic
#B042CE #CEB042 #42CEB0
tetradic
#B042CE #CE6A42 #60CE42 #42A6CE
square
#B042CE #CE6A42 #60CE42 #42A6CE
split-complementary
#B042CE #A6CE42 #42CE6A
monochromatic
#641F77 #8D2BA7 #B042CE #C473DB #D9A3E7

Accessibility & contrast

On white

4.65
#B042CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B042CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B042CE
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042CE#FFFFFF#000000##FFFFFF
##B042CE1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD2
Deuteranopia (green-blind)
#4878CB
Tritanopia (blue-blind)
#AF5C83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b042ce;
/* rgb */ color: rgb(176, 66, 206);
/* oklch */ color: oklch(58.8% 0.219 318.2);
Tailwind
colors: {
  custom: {
    50: '#cb7fde',
    500: '#b042ce',
    950: '#000000',
  },
}
SCSS
$custom: #b042ce;
$custom-light: #cb7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b042ce",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 287.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58817,
    "c": 0.219,
    "h": 318.2
  },
  "luminance": 0.17583
}

Semantic roles & 50–950 ramp

primary
#B042CE
secondary
#A5D498
accent
#E24667
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B042CE

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

Preview Lab → · Contrast checker → · Palette generator →

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