#B042D9#B042D9

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

Color values

HEX#B042D9
RGBrgb(176, 66, 217)
HSLhsl(284, 67%, 55%)
HSVhsv(284, 70%, 85%)
CMYKcmyk(18.9%, 69.6%, 0%, 14.9%)
CIE-LABlab(49.66, 66.16, -57.26)
CIE-LCHlch(49.66, 87.50, 319.12°)
OKLaboklab(59.52% 0.1625 -0.1612)
OKLCHoklch(59.52% 0.229 315.2)
XYZxyz(32.3751, 18.1375, 67.4277)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042D9 #6BD942
analogous
#6542D9 #B042D9 #D942B6
triadic
#B042D9 #D9B042 #42D9B0
tetradic
#B042D9 #D96542 #6BD942 #42B6D9
square
#B042D9 #D96542 #6BD942 #42B6D9
split-complementary
#B042D9 #B6D942 #42D965
monochromatic
#691B86 #9125B9 #B042D9 #C575E3 #DBA8ED

Accessibility & contrast

On white

4.54
#B042D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#B042D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B042D9
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042D9#FFFFFF#000000##000000
##B042D91.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#3E79D6
Tritanopia (blue-blind)
#AD6189
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b042d9;
/* rgb */ color: rgb(176, 66, 217);
/* oklch */ color: oklch(59.5% 0.229 315.2);
Tailwind
colors: {
  custom: {
    50: '#cc7fe5',
    500: '#b042d9',
    950: '#000000',
  },
}
SCSS
$custom: #b042d9;
$custom-light: #cc7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#b042d9",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 283.709,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59516,
    "c": 0.22891,
    "h": 315.2
  },
  "luminance": 0.18136
}

Semantic roles & 50–950 ramp

primary
#B042D9
secondary
#ADDB9C
accent
#E93E6D
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B042D9

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

Preview Lab → · Contrast checker → · Palette generator →

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