#57188A#57188A

#57188A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.173 H 303.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#57188A
RGBrgb(87, 24, 138)
HSLhsl(273, 70%, 32%)
HSVhsv(273, 83%, 54%)
CMYKcmyk(37%, 82.6%, 0%, 45.9%)
CIE-LABlab(25.30, 48.53, -50.34)
CIE-LCHlch(25.30, 69.93, 313.95°)
OKLaboklab(37.83% 0.0963 -0.1436)
OKLCHoklch(37.83% 0.173 303.8)
XYZxyz(8.8435, 4.5145, 24.4453)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57188A #4B8A18
analogous
#1E188A #57188A #8A1884
triadic
#57188A #8A5718 #188A57
tetradic
#57188A #8A1E18 #4B8A18 #18848A
square
#57188A #8A1E18 #4B8A18 #18848A
split-complementary
#57188A #848A18 #188A1E
monochromatic
#150622 #360F56 #57188A #7821BE #973FDE

Accessibility & contrast

On white

11.04
#57188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#57188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57188A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57188A#FFFFFF#000000##FFFFFF
##57188A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#4D3752
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57188a;
/* rgb */ color: rgb(87, 24, 138);
/* oklch */ color: oklch(37.8% 0.173 303.8);
Tailwind
colors: {
  custom: {
    50: '#8c5ead',
    500: '#57188a',
    950: '#000000',
  },
}
SCSS
$custom: #57188a;
$custom-light: #8c5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#57188a",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 273.158,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37828,
    "c": 0.17289,
    "h": 303.8
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#57188A
secondary
#78BD40
accent
#ED3B8B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57188A

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

Preview Lab → · Contrast checker → · Palette generator →

#57188A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva