#571B7E#571B7E

#571B7E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.158 H 307.9°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#571B7E
RGBrgb(87, 27, 126)
HSLhsl(276, 65%, 30%)
HSVhsv(276, 79%, 49%)
CMYKcmyk(31%, 78.6%, 0%, 50.6%)
CIE-LABlab(24.69, 44.52, -43.80)
CIE-LCHlch(24.69, 62.46, 315.47°)
OKLaboklab(37.08% 0.0968 -0.1244)
OKLCHoklch(37.08% 0.158 307.9)
XYZxyz(8.0875, 4.3166, 20.1417)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571B7E #427E1B
analogous
#261B7E #571B7E #7E1B73
triadic
#571B7E #7E571B #1B7E57
tetradic
#571B7E #7E261B #427E1B #1B737E
square
#571B7E #7E261B #427E1B #1B737E
split-complementary
#571B7E #737E1B #1B7E26
monochromatic
#110519 #34104C #571B7E #7A26B0 #9A3ED6

Accessibility & contrast

On white

11.27
#571B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#571B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571B7E
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571B7E#FFFFFF#000000##FFFFFF
##571B7E1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#51334C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #571b7e;
/* rgb */ color: rgb(87, 27, 126);
/* oklch */ color: oklch(37.1% 0.158 307.9);
Tailwind
colors: {
  custom: {
    50: '#8b5ea4',
    500: '#571b7e',
    950: '#000000',
  },
}
SCSS
$custom: #571b7e;
$custom-light: #8b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#571b7e",
  "rgb": {
    "r": 87,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 276.364,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.37083,
    "c": 0.15765,
    "h": 307.9
  },
  "luminance": 0.04316
}

Semantic roles & 50–950 ramp

primary
#571B7E
secondary
#6FB243
accent
#E84082
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #571B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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