#B042D5#B042D5

#B042D5 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.3% C 0.225 H 316.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B042D5
RGBrgb(176, 66, 213)
HSLhsl(285, 64%, 55%)
HSVhsv(285, 69%, 84%)
CMYKcmyk(17.4%, 69%, 0%, 16.5%)
CIE-LABlab(49.41, 65.38, -55.38)
CIE-LCHlch(49.41, 85.68, 319.73°)
OKLaboklab(59.26% 0.1629 -0.1557)
OKLCHoklch(59.26% 0.225 316.3)
XYZxyz(31.8611, 17.9319, 64.7208)
Luminance0.1793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042D5 #67D542
analogous
#6742D5 #B042D5 #D542B0
triadic
#B042D5 #D5B042 #42D5B0
tetradic
#B042D5 #D56742 #67D542 #42B0D5
square
#B042D5 #D56742 #67D542 #42B0D5
split-complementary
#B042D5 #B0D542 #42D567
monochromatic
#671C80 #8F28B2 #B042D5 #C574E0 #DAA6EB

Accessibility & contrast

On white

4.58
#B042D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#B042D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B042D5
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042D5#FFFFFF#000000##000000
##B042D51.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#4279D2
Tritanopia (blue-blind)
#AE5F87
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b042d5;
/* rgb */ color: rgb(176, 66, 213);
/* oklch */ color: oklch(59.3% 0.225 316.3);
Tailwind
colors: {
  custom: {
    50: '#cc7fe3',
    500: '#b042d5',
    950: '#000000',
  },
}
SCSS
$custom: #b042d5;
$custom-light: #cc7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#b042d5",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 284.898,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59258,
    "c": 0.22529,
    "h": 316.3
  },
  "luminance": 0.17931
}

Semantic roles & 50–950 ramp

primary
#B042D5
secondary
#AAD89A
accent
#E7416B
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B15
muted
#837C84

Preview Lab

Preview with #B042D5

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

Preview Lab → · Contrast checker → · Palette generator →

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