#571F81#571F81

#571F81 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.156 H 306.2°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#571F81
RGBrgb(87, 31, 129)
HSLhsl(274, 61%, 31%)
HSVhsv(274, 76%, 51%)
CMYKcmyk(32.6%, 76%, 0%, 49.4%)
CIE-LABlab(25.54, 43.52, -44.32)
CIE-LCHlch(25.54, 62.11, 314.48°)
OKLaboklab(37.76% 0.0923 -0.126)
OKLCHoklch(37.76% 0.156 306.2)
XYZxyz(8.3820, 4.5913, 21.2092)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571F81 #49811F
analogous
#261F81 #571F81 #811F7A
triadic
#571F81 #81571F #1F8157
tetradic
#571F81 #81261F #49811F #1F7A81
square
#571F81 #81261F #49811F #1F7A81
split-complementary
#571F81 #7A811F #1F8126
monochromatic
#14071E #361350 #571F81 #782BB2 #9747D3

Accessibility & contrast

On white

10.95
#571F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#571F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571F81
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571F81#FFFFFF#000000##FFFFFF
##571F811.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#50374E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #571f81;
/* rgb */ color: rgb(87, 31, 129);
/* oklch */ color: oklch(37.8% 0.156 306.2);
Tailwind
colors: {
  custom: {
    50: '#8b61a6',
    500: '#571f81',
    950: '#000000',
  },
}
SCSS
$custom: #571f81;
$custom-light: #8b61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#571f81",
  "rgb": {
    "r": 87,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 274.286,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37756,
    "c": 0.15614,
    "h": 306.2
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#571F81
secondary
#76B448
accent
#E44388
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #571F81

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

Preview Lab → · Contrast checker → · Palette generator →

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