#571B8F#571B8F

#571B8F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.175 H 301.8°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#571B8F
RGBrgb(87, 27, 143)
HSLhsl(271, 68%, 33%)
HSVhsv(271, 81%, 56%)
CMYKcmyk(39.2%, 81.1%, 0%, 43.9%)
CIE-LABlab(26.14, 48.60, -52.09)
CIE-LCHlch(26.14, 71.24, 313.02°)
OKLaboklab(38.55% 0.0924 -0.1488)
OKLCHoklch(38.55% 0.175 301.8)
XYZxyz(9.2791, 4.7932, 26.4176)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571B8F #538F1B
analogous
#1D1B8F #571B8F #8F1B8D
triadic
#571B8F #8F571B #1B8F57
tetradic
#571B8F #8F1D1B #538F1B #1B8D8F
square
#571B8F #8F1D1B #538F1B #1B8D8F
split-complementary
#571B8F #8D8F1B #1B8F1D
monochromatic
#180828 #38115C #571B8F #7625C2 #9548DC

Accessibility & contrast

On white

10.72
#571B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#571B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571B8F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571B8F#FFFFFF#000000##FFFFFF
##571B8F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#4B3B55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #571b8f;
/* rgb */ color: rgb(87, 27, 143);
/* oklch */ color: oklch(38.5% 0.175 301.8);
Tailwind
colors: {
  custom: {
    50: '#8c5fb1',
    500: '#571b8f',
    950: '#000000',
  },
}
SCSS
$custom: #571b8f;
$custom-light: #8c5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#571b8f",
  "rgb": {
    "r": 87,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 271.034,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38545,
    "c": 0.17512,
    "h": 301.8
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#571B8F
secondary
#81BE48
accent
#EB3D91
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #571B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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