#B042D1#B042D1

#B042D1 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.0% C 0.222 H 317.4°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B042D1
RGBrgb(176, 66, 209)
HSLhsl(286, 61%, 54%)
HSVhsv(286, 68%, 82%)
CMYKcmyk(15.8%, 68.4%, 0%, 18%)
CIE-LABlab(49.17, 64.60, -53.48)
CIE-LCHlch(49.17, 83.87, 320.38°)
OKLaboklab(59.01% 0.1631 -0.1501)
OKLCHoklch(59.01% 0.222 317.4)
XYZxyz(31.3597, 17.7313, 62.0798)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B042D1 #63D142
analogous
#6942D1 #B042D1 #D142AB
triadic
#B042D1 #D1B042 #42D1B0
tetradic
#B042D1 #D16942 #63D142 #42ABD1
square
#B042D1 #D16942 #63D142 #42ABD1
split-complementary
#B042D1 #ABD142 #42D169
monochromatic
#651E7B #8E2AAC #B042D1 #C573DD #D9A4E9

Accessibility & contrast

On white

4.62
#B042D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B042D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B042D1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B042D1#FFFFFF#000000##FFFFFF
##B042D11.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED5
Deuteranopia (green-blind)
#4678CE
Tritanopia (blue-blind)
#AF5E85
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b042d1;
/* rgb */ color: rgb(176, 66, 209);
/* oklch */ color: oklch(59.0% 0.222 317.4);
Tailwind
colors: {
  custom: {
    50: '#cb7fe0',
    500: '#b042d1',
    950: '#000000',
  },
}
SCSS
$custom: #b042d1;
$custom-light: #cb7fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#b042d1",
  "rgb": {
    "r": 176,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 286.154,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59005,
    "c": 0.22169,
    "h": 317.4
  },
  "luminance": 0.1773
}

Semantic roles & 50–950 ramp

primary
#B042D1
secondary
#A7D699
accent
#E44469
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #B042D1

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

Preview Lab → · Contrast checker → · Palette generator →

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