#571F96#571F96

#571F96 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.178 H 299.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#571F96
RGBrgb(87, 31, 150)
HSLhsl(268, 66%, 35%)
HSVhsv(268, 79%, 59%)
CMYKcmyk(42%, 79.3%, 0%, 41.2%)
CIE-LABlab(27.32, 48.72, -54.48)
CIE-LCHlch(27.32, 73.09, 311.81°)
OKLaboklab(39.56% 0.087 -0.1558)
OKLCHoklch(39.56% 0.178 299.2)
XYZxyz(9.9241, 5.2081, 29.3307)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571F96 #5E961F
analogous
#1F2396 #571F96 #921F96
triadic
#571F96 #96571F #1F9657
tetradic
#571F96 #961F23 #5E961F #1F9692
square
#571F96 #961F23 #5E961F #1F9692
split-complementary
#571F96 #96921F #23961F
monochromatic
#1C0A31 #3A1563 #571F96 #7429C9 #9454DC

Accessibility & contrast

On white

10.29
#571F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#571F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571F96
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571F96#FFFFFF#000000##FFFFFF
##571F961.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#483F5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #571f96;
/* rgb */ color: rgb(87, 31, 150);
/* oklch */ color: oklch(39.6% 0.178 299.2);
Tailwind
colors: {
  custom: {
    50: '#8d62b6',
    500: '#571f96',
    950: '#000000',
  },
}
SCSS
$custom: #571f96;
$custom-light: #8d62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#571f96",
  "rgb": {
    "r": 87,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 268.235,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39562,
    "c": 0.17848,
    "h": 299.2
  },
  "luminance": 0.05208
}

Semantic roles & 50–950 ramp

primary
#571F96
secondary
#8CBF52
accent
#E93F99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #571F96

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

Preview Lab → · Contrast checker → · Palette generator →

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