#57178C#57178C

#57178C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.176 H 303.3°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#57178C
RGBrgb(87, 23, 140)
HSLhsl(273, 72%, 32%)
HSVhsv(273, 84%, 55%)
CMYKcmyk(37.9%, 83.6%, 0%, 45.1%)
CIE-LABlab(25.36, 49.37, -51.50)
CIE-LCHlch(25.36, 71.34, 313.79°)
OKLaboklab(37.92% 0.0964 -0.147)
OKLCHoklch(37.92% 0.176 303.3)
XYZxyz(8.9694, 4.5325, 25.2082)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57178C #4C8C17
analogous
#1D178C #57178C #8C1786
triadic
#57178C #8C5717 #178C57
tetradic
#57178C #8C1D17 #4C8C17 #17868C
square
#57178C #8C1D17 #4C8C17 #17868C
split-complementary
#57178C #868C17 #178C1D
monochromatic
#160623 #360E57 #57178C #7820C1 #963EDF

Accessibility & contrast

On white

11.02
#57178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57178C
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57178C#FFFFFF#000000##FFFFFF
##57178C1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #57178c;
/* rgb */ color: rgb(87, 23, 140);
/* oklch */ color: oklch(37.9% 0.176 303.3);
Tailwind
colors: {
  custom: {
    50: '#8c5eaf',
    500: '#57178c',
    950: '#000000',
  },
}
SCSS
$custom: #57178c;
$custom-light: #8c5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#57178c",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 272.821,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37921,
    "c": 0.17579,
    "h": 303.3
  },
  "luminance": 0.04532
}

Semantic roles & 50–950 ramp

primary
#57178C
secondary
#79BF3F
accent
#EF398B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57178C

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

Preview Lab → · Contrast checker → · Palette generator →

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