#571F8C#571F8C

#571F8C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.168 H 302.3°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#571F8C
RGBrgb(87, 31, 140)
HSLhsl(271, 64%, 34%)
HSVhsv(271, 78%, 55%)
CMYKcmyk(37.9%, 77.9%, 0%, 45.1%)
CIE-LABlab(26.45, 46.22, -49.72)
CIE-LCHlch(26.45, 67.89, 312.91°)
OKLaboklab(38.68% 0.0898 -0.1419)
OKLCHoklch(38.68% 0.168 302.3)
XYZxyz(9.1530, 4.8996, 25.2694)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571F8C #548C1F
analogous
#201F8C #571F8C #8C1F8A
triadic
#571F8C #8C571F #1F8C57
tetradic
#571F8C #8C201F #548C1F #1F8A8C
square
#571F8C #8C201F #548C1F #1F8A8C
split-complementary
#571F8C #8A8C1F #1F8C20
monochromatic
#190928 #38145A #571F8C #762ABE #954ED8

Accessibility & contrast

On white

10.61
#571F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#571F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571F8C
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571F8C#FFFFFF#000000##FFFFFF
##571F8C1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#4C3B54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #571f8c;
/* rgb */ color: rgb(87, 31, 140);
/* oklch */ color: oklch(38.7% 0.168 302.3);
Tailwind
colors: {
  custom: {
    50: '#8c61ae',
    500: '#571f8c',
    950: '#000000',
  },
}
SCSS
$custom: #571f8c;
$custom-light: #8c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#571f8c",
  "rgb": {
    "r": 87,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 270.826,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38681,
    "c": 0.16787,
    "h": 302.3
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#571F8C
secondary
#82BB4C
accent
#E74192
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #571F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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