#571D8B#571D8B

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

Color values

HEX#571D8B
RGBrgb(87, 29, 139)
HSLhsl(272, 65%, 33%)
HSVhsv(272, 79%, 55%)
CMYKcmyk(37.4%, 79.1%, 0%, 45.5%)
CIE-LABlab(26.07, 46.82, -49.72)
CIE-LCHlch(26.07, 68.30, 313.28°)
OKLaboklab(38.39% 0.0918 -0.1418)
OKLCHoklch(38.39% 0.169 302.9)
XYZxyz(9.0289, 4.7690, 24.8659)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571D8B #518B1D
analogous
#201D8B #571D8B #8B1D88
triadic
#571D8B #8B571D #1D8B57
tetradic
#571D8B #8B201D #518B1D #1D888B
square
#571D8B #8B201D #518B1D #1D888B
split-complementary
#571D8B #888B1D #1D8B20
monochromatic
#180826 #371258 #571D8B #7728BE #9549D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##571D8B#FFFFFF#000000##FFFFFF
##571D8B1.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)
#003D8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#4C3A53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #571d8b;
/* rgb */ color: rgb(87, 29, 139);
/* oklch */ color: oklch(38.4% 0.169 302.9);
Tailwind
colors: {
  custom: {
    50: '#8c60ae',
    500: '#571d8b',
    950: '#000000',
  },
}
SCSS
$custom: #571d8b;
$custom-light: #8c60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#571d8b",
  "rgb": {
    "r": 87,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 271.636,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38387,
    "c": 0.16896,
    "h": 302.9
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#571D8B
secondary
#7FBB49
accent
#E83F8F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #571D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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