#571F98#571F98

#571F98 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.181 H 298.6°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#571F98
RGBrgb(87, 31, 152)
HSLhsl(268, 66%, 36%)
HSVhsv(268, 80%, 60%)
CMYKcmyk(42.8%, 79.6%, 0%, 40.4%)
CIE-LABlab(27.50, 49.23, -55.41)
CIE-LCHlch(27.50, 74.12, 311.62°)
OKLaboklab(39.74% 0.0865 -0.1586)
OKLCHoklch(39.74% 0.181 298.6)
XYZxyz(10.0865, 5.2731, 30.1861)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571F98 #60981F
analogous
#1F2398 #571F98 #931F98
triadic
#571F98 #98571F #1F9857
tetradic
#571F98 #981F23 #60981F #1F9893
square
#571F98 #981F23 #60981F #1F9893
split-complementary
#571F98 #98931F #23981F
monochromatic
#1D0A32 #3A1565 #571F98 #7429CB #9455DC

Accessibility & contrast

On white

10.22
#571F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#571F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571F98
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571F98#FFFFFF#000000##FFFFFF
##571F981.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#47405B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #571f98;
/* rgb */ color: rgb(87, 31, 152);
/* oklch */ color: oklch(39.7% 0.181 298.6);
Tailwind
colors: {
  custom: {
    50: '#8d62b7',
    500: '#571f98',
    950: '#000000',
  },
}
SCSS
$custom: #571f98;
$custom-light: #8d62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#571f98",
  "rgb": {
    "r": 87,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 267.769,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39742,
    "c": 0.1806,
    "h": 298.6
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#571F98
secondary
#8DC053
accent
#E93F9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #571F98

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

Preview Lab → · Contrast checker → · Palette generator →

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