#B042D8#B042D8

#B042D8 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.5% C 0.228 H 315.5°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B042D8
RGBrgb(176, 66, 216)
HSLhsl(284, 66%, 55%)
HSVhsv(284, 69%, 85%)
CMYKcmyk(18.5%, 69.4%, 0%, 15.3%)
CIE-LABlab(49.60, 65.96, -56.79)
CIE-LCHlch(49.60, 87.04, 319.27°)
OKLaboklab(59.45% 0.1626 -0.1598)
OKLCHoklch(59.45% 0.228 315.5)
XYZxyz(32.2454, 18.0856, 66.7447)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042D8 #6AD842
analogous
#6542D8 #B042D8 #D842B5
triadic
#B042D8 #D8B042 #42D8B0
tetradic
#B042D8 #D86542 #6AD842 #42B5D8
square
#B042D8 #D86542 #6AD842 #42B5D8
split-complementary
#B042D8 #B5D842 #42D865
monochromatic
#681B84 #9026B7 #B042D8 #C575E2 #DAA7ED

Accessibility & contrast

On white

4.55
#B042D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B042D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B042D8
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042D8#FFFFFF#000000##000000
##B042D81.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#3F79D5
Tritanopia (blue-blind)
#AD6089
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b042d8;
/* rgb */ color: rgb(176, 66, 216);
/* oklch */ color: oklch(59.5% 0.228 315.5);
Tailwind
colors: {
  custom: {
    50: '#cc7fe5',
    500: '#b042d8',
    950: '#000000',
  },
}
SCSS
$custom: #b042d8;
$custom-light: #cc7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#b042d8",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 284,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59451,
    "c": 0.22801,
    "h": 315.5
  },
  "luminance": 0.18084
}

Semantic roles & 50–950 ramp

primary
#B042D8
secondary
#ACDA9C
accent
#E93F6C
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B042D8

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

Preview Lab → · Contrast checker → · Palette generator →

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