#571B8E#571B8E

#571B8E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.174 H 302.2°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#571B8E
RGBrgb(87, 27, 142)
HSLhsl(271, 68%, 33%)
HSVhsv(271, 81%, 56%)
CMYKcmyk(38.7%, 81%, 0%, 44.3%)
CIE-LABlab(26.05, 48.36, -51.61)
CIE-LCHlch(26.05, 70.73, 313.13°)
OKLaboklab(38.46% 0.0927 -0.1474)
OKLCHoklch(38.46% 0.174 302.2)
XYZxyz(9.2037, 4.7631, 26.0204)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571B8E #528E1B
analogous
#1D1B8E #571B8E #8E1B8B
triadic
#571B8E #8E571B #1B8E57
tetradic
#571B8E #8E1D1B #528E1B #1B8B8E
square
#571B8E #8E1D1B #528E1B #1B8B8E
split-complementary
#571B8E #8B8E1B #1B8E1D
monochromatic
#180727 #37115B #571B8E #7725C1 #9547DC

Accessibility & contrast

On white

10.75
#571B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#571B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571B8E
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571B8E#FFFFFF#000000##FFFFFF
##571B8E1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#4B3A55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #571b8e;
/* rgb */ color: rgb(87, 27, 142);
/* oklch */ color: oklch(38.5% 0.174 302.2);
Tailwind
colors: {
  custom: {
    50: '#8c5fb0',
    500: '#571b8e',
    950: '#000000',
  },
}
SCSS
$custom: #571b8e;
$custom-light: #8c5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#571b8e",
  "rgb": {
    "r": 87,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 271.304,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38456,
    "c": 0.17409,
    "h": 302.2
  },
  "luminance": 0.04763
}

Semantic roles & 50–950 ramp

primary
#571B8E
secondary
#80BE47
accent
#EB3D90
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #571B8E

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

Preview Lab → · Contrast checker → · Palette generator →

#571B8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva