#571B7F#571B7F

#571B7F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.159 H 307.5°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#571B7F
RGBrgb(87, 27, 127)
HSLhsl(276, 65%, 30%)
HSVhsv(276, 79%, 50%)
CMYKcmyk(31.5%, 78.7%, 0%, 50.2%)
CIE-LABlab(24.77, 44.76, -44.30)
CIE-LCHlch(24.77, 62.98, 315.30°)
OKLaboklab(37.17% 0.0966 -0.1259)
OKLCHoklch(37.17% 0.159 307.5)
XYZxyz(8.1524, 4.3425, 20.4833)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571B7F #437F1B
analogous
#251B7F #571B7F #7F1B75
triadic
#571B7F #7F571B #1B7F57
tetradic
#571B7F #7F251B #437F1B #1B757F
square
#571B7F #7F251B #437F1B #1B757F
split-complementary
#571B7F #757F1B #1B7F25
monochromatic
#12061A #34104D #571B7F #7A26B1 #993ED6

Accessibility & contrast

On white

11.24
#571B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#571B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571B7F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571B7F#FFFFFF#000000##FFFFFF
##571B7F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#50344C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #571b7f;
/* rgb */ color: rgb(87, 27, 127);
/* oklch */ color: oklch(37.2% 0.159 307.5);
Tailwind
colors: {
  custom: {
    50: '#8b5fa5',
    500: '#571b7f',
    950: '#000000',
  },
}
SCSS
$custom: #571b7f;
$custom-light: #8b5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#571b7f",
  "rgb": {
    "r": 87,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 276,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37166,
    "c": 0.15868,
    "h": 307.5
  },
  "luminance": 0.04342
}

Semantic roles & 50–950 ramp

primary
#571B7F
secondary
#70B343
accent
#E84083
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #571B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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