#57197E#57197E

#57197E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.160 H 308.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#57197E
RGBrgb(87, 25, 126)
HSLhsl(277, 67%, 30%)
HSVhsv(277, 80%, 49%)
CMYKcmyk(31%, 80.2%, 0%, 50.6%)
CIE-LABlab(24.41, 45.33, -44.25)
CIE-LCHlch(24.41, 63.35, 315.69°)
OKLaboklab(36.89% 0.0987 -0.1257)
OKLCHoklch(36.89% 0.16 308.1)
XYZxyz(8.0432, 4.2280, 20.1270)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57197E #407E19
analogous
#25197E #57197E #7E1972
triadic
#57197E #7E5719 #197E57
tetradic
#57197E #7E2519 #407E19 #19727E
square
#57197E #7E2519 #407E19 #19727E
split-complementary
#57197E #727E19 #197E25
monochromatic
#12051A #340F4B #57197E #7A23B1 #9B3AD8

Accessibility & contrast

On white

11.38
#57197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57197E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57197E#FFFFFF#000000##FFFFFF
##57197E1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #57197e;
/* rgb */ color: rgb(87, 25, 126);
/* oklch */ color: oklch(36.9% 0.160 308.1);
Tailwind
colors: {
  custom: {
    50: '#8b5ea4',
    500: '#57197e',
    950: '#000000',
  },
}
SCSS
$custom: #57197e;
$custom-light: #8b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#57197e",
  "rgb": {
    "r": 87,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 276.832,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36886,
    "c": 0.15984,
    "h": 308.1
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#57197E
secondary
#6CB241
accent
#EA3E80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57197E

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

Preview Lab → · Contrast checker → · Palette generator →

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