#571F97#571F97

#571F97 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.180 H 298.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#571F97
RGBrgb(87, 31, 151)
HSLhsl(268, 66%, 36%)
HSVhsv(268, 79%, 59%)
CMYKcmyk(42.4%, 79.5%, 0%, 40.8%)
CIE-LABlab(27.41, 48.97, -54.95)
CIE-LCHlch(27.41, 73.60, 311.71°)
OKLaboklab(39.65% 0.0867 -0.1572)
OKLCHoklch(39.65% 0.18 298.9)
XYZxyz(10.0050, 5.2404, 29.7565)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571F97 #5F971F
analogous
#1F2397 #571F97 #931F97
triadic
#571F97 #97571F #1F9757
tetradic
#571F97 #971F23 #5F971F #1F9793
square
#571F97 #971F23 #5F971F #1F9793
split-complementary
#571F97 #97931F #23971F
monochromatic
#1C0A31 #3A1564 #571F97 #7429CA #9454DC

Accessibility & contrast

On white

10.25
#571F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#571F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571F97
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571F97#FFFFFF#000000##FFFFFF
##571F971.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#47405B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #571f97;
/* rgb */ color: rgb(87, 31, 151);
/* oklch */ color: oklch(39.7% 0.180 298.9);
Tailwind
colors: {
  custom: {
    50: '#8d62b7',
    500: '#571f97',
    950: '#000000',
  },
}
SCSS
$custom: #571f97;
$custom-light: #8d62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#571f97",
  "rgb": {
    "r": 87,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 268,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39652,
    "c": 0.17954,
    "h": 298.9
  },
  "luminance": 0.05241
}

Semantic roles & 50–950 ramp

primary
#571F97
secondary
#8DBF52
accent
#E93F9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #571F97

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

Preview Lab → · Contrast checker → · Palette generator →

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