#57197F#57197F

#57197F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.161 H 307.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#57197F
RGBrgb(87, 25, 127)
HSLhsl(276, 67%, 30%)
HSVhsv(276, 80%, 50%)
CMYKcmyk(31.5%, 80.3%, 0%, 50.2%)
CIE-LABlab(24.49, 45.56, -44.75)
CIE-LCHlch(24.49, 63.87, 315.51°)
OKLaboklab(36.97% 0.0984 -0.1272)
OKLCHoklch(36.97% 0.161 307.7)
XYZxyz(8.1081, 4.2539, 20.4685)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57197F #417F19
analogous
#24197F #57197F #7F1974
triadic
#57197F #7F5719 #197F57
tetradic
#57197F #7F2419 #417F19 #19747F
square
#57197F #7F2419 #417F19 #19747F
split-complementary
#57197F #747F19 #197F24
monochromatic
#12051A #340F4C #57197F #7A23B2 #9A3AD8

Accessibility & contrast

On white

11.35
#57197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#57197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57197F
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57197F#FFFFFF#000000##FFFFFF
##57197F1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#50334C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #57197f;
/* rgb */ color: rgb(87, 25, 127);
/* oklch */ color: oklch(37.0% 0.161 307.7);
Tailwind
colors: {
  custom: {
    50: '#8b5ea5',
    500: '#57197f',
    950: '#000000',
  },
}
SCSS
$custom: #57197f;
$custom-light: #8b5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#57197f",
  "rgb": {
    "r": 87,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 276.471,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3697,
    "c": 0.16084,
    "h": 307.7
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#57197F
secondary
#6EB341
accent
#EA3E81
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57197F

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

Preview Lab → · Contrast checker → · Palette generator →

#57197F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva