#57197D#57197D

#57197D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.159 H 308.5°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#57197D
RGBrgb(87, 25, 125)
HSLhsl(277, 67%, 29%)
HSVhsv(277, 80%, 49%)
CMYKcmyk(30.4%, 80%, 0%, 51%)
CIE-LABlab(24.33, 45.10, -43.75)
CIE-LCHlch(24.33, 62.84, 315.87°)
OKLaboklab(36.8% 0.0989 -0.1243)
OKLCHoklch(36.8% 0.159 308.5)
XYZxyz(7.9790, 4.2023, 19.7889)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57197D #3F7D19
analogous
#25197D #57197D #7D1971
triadic
#57197D #7D5719 #197D57
tetradic
#57197D #7D2519 #3F7D19 #19717D
square
#57197D #7D2519 #3F7D19 #19717D
split-complementary
#57197D #717D19 #197D25
monochromatic
#12051A #340F4A #57197D #7A23B0 #9B39D7

Accessibility & contrast

On white

11.41
#57197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#57197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57197D
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57197D#FFFFFF#000000##FFFFFF
##57197D1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#51324B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #57197d;
/* rgb */ color: rgb(87, 25, 125);
/* oklch */ color: oklch(36.8% 0.159 308.5);
Tailwind
colors: {
  custom: {
    50: '#8b5ea3',
    500: '#57197d',
    950: '#000000',
  },
}
SCSS
$custom: #57197d;
$custom-light: #8b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#57197d",
  "rgb": {
    "r": 87,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 277.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36803,
    "c": 0.15884,
    "h": 308.5
  },
  "luminance": 0.04202
}

Semantic roles & 50–950 ramp

primary
#57197D
secondary
#6BB140
accent
#EA3E7F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57197D

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

Preview Lab → · Contrast checker → · Palette generator →

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