#57178A#57178A

#57178A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.174 H 303.9°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#57178A
RGBrgb(87, 23, 138)
HSLhsl(273, 71%, 32%)
HSVhsv(273, 83%, 54%)
CMYKcmyk(37%, 83.3%, 0%, 45.9%)
CIE-LABlab(25.18, 48.89, -50.54)
CIE-LCHlch(25.18, 70.32, 314.05°)
OKLaboklab(37.74% 0.097 -0.1442)
OKLCHoklch(37.74% 0.174 303.9)
XYZxyz(8.8233, 4.4740, 24.4386)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57178A #4A8A17
analogous
#1D178A #57178A #8A1784
triadic
#57178A #8A5717 #178A57
tetradic
#57178A #8A1D17 #4A8A17 #17848A
square
#57178A #8A1D17 #4A8A17 #17848A
split-complementary
#57178A #848A17 #178A1D
monochromatic
#150621 #360E56 #57178A #7820BE #973DDF

Accessibility & contrast

On white

11.08
#57178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#57178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57178A
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57178A#FFFFFF#000000##FFFFFF
##57178A1.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #57178a;
/* rgb */ color: rgb(87, 23, 138);
/* oklch */ color: oklch(37.7% 0.174 303.9);
Tailwind
colors: {
  custom: {
    50: '#8c5dad',
    500: '#57178a',
    950: '#000000',
  },
}
SCSS
$custom: #57178a;
$custom-light: #8c5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#57178a",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 273.391,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37742,
    "c": 0.17381,
    "h": 303.9
  },
  "luminance": 0.04474
}

Semantic roles & 50–950 ramp

primary
#57178A
secondary
#77BE3F
accent
#EE3A8A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57178A

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

Preview Lab → · Contrast checker → · Palette generator →

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