#57197B#57197B

#57197B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.157 H 309.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#57197B
RGBrgb(87, 25, 123)
HSLhsl(278, 66%, 29%)
HSVhsv(278, 80%, 48%)
CMYKcmyk(29.3%, 79.7%, 0%, 51.8%)
CIE-LABlab(24.17, 44.63, -42.75)
CIE-LCHlch(24.17, 61.80, 316.24°)
OKLaboklab(36.64% 0.0994 -0.1213)
OKLCHoklch(36.64% 0.157 309.3)
XYZxyz(7.8525, 4.1517, 19.1227)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57197B #3D7B19
analogous
#26197B #57197B #7B196E
triadic
#57197B #7B5719 #197B57
tetradic
#57197B #7B2619 #3D7B19 #196E7B
square
#57197B #7B2619 #3D7B19 #196E7B
split-complementary
#57197B #6E7B19 #197B26
monochromatic
#120519 #330F48 #57197B #7B23AE #9C38D7

Accessibility & contrast

On white

11.47
#57197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#57197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57197B
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57197B#FFFFFF#000000##FFFFFF
##57197B1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#523149
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #57197b;
/* rgb */ color: rgb(87, 25, 123);
/* oklch */ color: oklch(36.6% 0.157 309.3);
Tailwind
colors: {
  custom: {
    50: '#8b5da2',
    500: '#57197b',
    950: '#000000',
  },
}
SCSS
$custom: #57197b;
$custom-light: #8b5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#57197b",
  "rgb": {
    "r": 87,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 277.959,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36638,
    "c": 0.15682,
    "h": 309.3
  },
  "luminance": 0.04152
}

Semantic roles & 50–950 ramp

primary
#57197B
secondary
#69AF40
accent
#E93F7D
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57197B

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

Preview Lab → · Contrast checker → · Palette generator →

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