#57178D#57178D

#57178D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.177 H 302.9°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#57178D
RGBrgb(87, 23, 141)
HSLhsl(273, 72%, 32%)
HSVhsv(273, 84%, 55%)
CMYKcmyk(38.3%, 83.7%, 0%, 44.7%)
CIE-LABlab(25.45, 49.60, -51.97)
CIE-LCHlch(25.45, 71.85, 313.66°)
OKLaboklab(38.01% 0.0961 -0.1484)
OKLCHoklch(38.01% 0.177 302.9)
XYZxyz(9.0434, 4.5621, 25.5983)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57178D #4D8D17
analogous
#1C178D #57178D #8D1788
triadic
#57178D #8D5717 #178D57
tetradic
#57178D #8D1C17 #4D8D17 #17888D
square
#57178D #8D1C17 #4D8D17 #17888D
split-complementary
#57178D #888D17 #178D1C
monochromatic
#160624 #370E58 #57178D #7720C2 #963FE0

Accessibility & contrast

On white

10.98
#57178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#57178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57178D
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57178D#FFFFFF#000000##FFFFFF
##57178D1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#4C3853
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57178d;
/* rgb */ color: rgb(87, 23, 141);
/* oklch */ color: oklch(38.0% 0.177 302.9);
Tailwind
colors: {
  custom: {
    50: '#8c5eaf',
    500: '#57178d',
    950: '#000000',
  },
}
SCSS
$custom: #57178d;
$custom-light: #8c5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#57178d",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 272.542,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38011,
    "c": 0.17679,
    "h": 302.9
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#57178D
secondary
#7AC040
accent
#EF398C
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57178D

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

Preview Lab → · Contrast checker → · Palette generator →

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