#571A8C#571A8C

#571A8C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.173 H 302.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#571A8C
RGBrgb(87, 26, 140)
HSLhsl(272, 69%, 33%)
HSVhsv(272, 81%, 55%)
CMYKcmyk(37.9%, 81.4%, 0%, 45.1%)
CIE-LABlab(25.74, 48.26, -50.88)
CIE-LCHlch(25.74, 70.13, 313.49°)
OKLaboklab(38.19% 0.0941 -0.1452)
OKLCHoklch(38.19% 0.173 302.9)
XYZxyz(9.0324, 4.6585, 25.2292)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571A8C #4F8C1A
analogous
#1E1A8C #571A8C #8C1A88
triadic
#571A8C #8C571A #1A8C57
tetradic
#571A8C #8C1E1A #4F8C1A #1A888C
square
#571A8C #8C1E1A #4F8C1A #1A888C
split-complementary
#571A8C #888C1A #1A8C1E
monochromatic
#170725 #371058 #571A8C #7724C0 #9644DC

Accessibility & contrast

On white

10.87
#571A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#571A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571A8C
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571A8C#FFFFFF#000000##FFFFFF
##571A8C1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#4C3953
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #571a8c;
/* rgb */ color: rgb(87, 26, 140);
/* oklch */ color: oklch(38.2% 0.173 302.9);
Tailwind
colors: {
  custom: {
    50: '#8c5faf',
    500: '#571a8c',
    950: '#000000',
  },
}
SCSS
$custom: #571a8c;
$custom-light: #8c5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#571a8c",
  "rgb": {
    "r": 87,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 272.105,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38185,
    "c": 0.17301,
    "h": 302.9
  },
  "luminance": 0.04658
}

Semantic roles & 50–950 ramp

primary
#571A8C
secondary
#7DBE44
accent
#EC3C8E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #571A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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