#571B7A#571B7A

#571B7A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.154 H 309.5°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#571B7A
RGBrgb(87, 27, 122)
HSLhsl(278, 64%, 29%)
HSVhsv(278, 78%, 48%)
CMYKcmyk(28.7%, 77.9%, 0%, 52.2%)
CIE-LABlab(24.37, 43.59, -41.78)
CIE-LCHlch(24.37, 60.38, 316.21°)
OKLaboklab(36.76% 0.0977 -0.1185)
OKLCHoklch(36.76% 0.154 309.5)
XYZxyz(7.8346, 4.2154, 18.8095)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571B7A #3E7A1B
analogous
#281B7A #571B7A #7A1B6E
triadic
#571B7A #7A571B #1B7A57
tetradic
#571B7A #7A281B #3E7A1B #1B6E7A
square
#571B7A #7A281B #3E7A1B #1B6E7A
split-complementary
#571B7A #6E7A1B #1B7A28
monochromatic
#120619 #331048 #571B7A #7B26AC #9C3CD4

Accessibility & contrast

On white

11.39
#571B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#571B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571B7A
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571B7A#FFFFFF#000000##FFFFFF
##571B7A1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003B78
Tritanopia (blue-blind)
#523249
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #571b7a;
/* rgb */ color: rgb(87, 27, 122);
/* oklch */ color: oklch(36.8% 0.154 309.5);
Tailwind
colors: {
  custom: {
    50: '#8a5ea1',
    500: '#571b7a',
    950: '#000000',
  },
}
SCSS
$custom: #571b7a;
$custom-light: #8a5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#571b7a",
  "rgb": {
    "r": 87,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 277.895,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.15355,
    "h": 309.5
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#571B7A
secondary
#6AAE43
accent
#E7417E
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #571B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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