#571787#571787

#571787 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.171 H 305.0°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#571787
RGBrgb(87, 23, 135)
HSLhsl(274, 71%, 31%)
HSVhsv(274, 83%, 53%)
CMYKcmyk(35.6%, 83%, 0%, 47.1%)
CIE-LABlab(24.92, 48.19, -49.10)
CIE-LCHlch(24.92, 68.80, 314.46°)
OKLaboklab(37.48% 0.0979 -0.14)
OKLCHoklch(37.48% 0.171 305)
XYZxyz(8.6091, 4.3883, 23.3105)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571787 #478717
analogous
#1F1787 #571787 #87177F
triadic
#571787 #875717 #178757
tetradic
#571787 #871F17 #478717 #177F87
square
#571787 #871F17 #478717 #177F87
split-complementary
#571787 #7F8717 #17871F
monochromatic
#14051E #350E53 #571787 #7920BB #983BDE

Accessibility & contrast

On white

11.18
#571787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#571787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571787
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571787#FFFFFF#000000##FFFFFF
##5717871.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#4E3650
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #571787;
/* rgb */ color: rgb(87, 23, 135);
/* oklch */ color: oklch(37.5% 0.171 305.0);
Tailwind
colors: {
  custom: {
    50: '#8c5dab',
    500: '#571787',
    950: '#000000',
  },
}
SCSS
$custom: #571787;
$custom-light: #8c5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#571787",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 274.286,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37477,
    "c": 0.17083,
    "h": 305
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#571787
secondary
#74BB3F
accent
#EE3A87
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #571787

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

Preview Lab → · Contrast checker → · Palette generator →

#571787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva