#571796#571796

#571796 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.186 H 300.1°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#571796
RGBrgb(87, 23, 150)
HSLhsl(270, 73%, 34%)
HSVhsv(270, 85%, 59%)
CMYKcmyk(42%, 84.7%, 0%, 41.2%)
CIE-LABlab(26.28, 51.76, -56.19)
CIE-LCHlch(26.28, 76.39, 312.65°)
OKLaboklab(38.84% 0.093 -0.1608)
OKLCHoklch(38.84% 0.186 300.1)
XYZxyz(9.7405, 4.8409, 29.2695)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571796 #569617
analogous
#181796 #571796 #961796
triadic
#571796 #965717 #179657
tetradic
#571796 #961817 #569617 #179696
square
#571796 #961817 #569617 #179696
split-complementary
#571796 #969617 #179618
monochromatic
#19072C #380F61 #571796 #761FCB #9445E2

Accessibility & contrast

On white

10.67
#571796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#571796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571796
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571796#FFFFFF#000000##FFFFFF
##5717961.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#483C59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #571796;
/* rgb */ color: rgb(87, 23, 150);
/* oklch */ color: oklch(38.8% 0.186 300.1);
Tailwind
colors: {
  custom: {
    50: '#8d5eb6',
    500: '#571796',
    950: '#000000',
  },
}
SCSS
$custom: #571796;
$custom-light: #8d5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#571796",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 270.236,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38838,
    "c": 0.18575,
    "h": 300.1
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#571796
secondary
#84C345
accent
#F03893
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #571796

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

Preview Lab → · Contrast checker → · Palette generator →

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