#57178E#57178E

#57178E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.178 H 302.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#57178E
RGBrgb(87, 23, 142)
HSLhsl(272, 72%, 32%)
HSVhsv(272, 84%, 56%)
CMYKcmyk(38.7%, 83.8%, 0%, 44.3%)
CIE-LABlab(25.54, 49.84, -52.45)
CIE-LCHlch(25.54, 72.35, 313.54°)
OKLaboklab(38.1% 0.0958 -0.1498)
OKLCHoklch(38.1% 0.178 302.6)
XYZxyz(9.1182, 4.5920, 25.9919)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57178E #4E8E17
analogous
#1C178E #57178E #8E1789
triadic
#57178E #8E5717 #178E57
tetradic
#57178E #8E1C17 #4E8E17 #17898E
square
#57178E #8E1C17 #4E8E17 #17898E
split-complementary
#57178E #898E17 #178E1C
monochromatic
#160625 #370E59 #57178E #7720C3 #963FE0

Accessibility & contrast

On white

10.95
#57178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#57178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57178E
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57178E#FFFFFF#000000##FFFFFF
##57178E1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#4B3954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57178e;
/* rgb */ color: rgb(87, 23, 142);
/* oklch */ color: oklch(38.1% 0.178 302.6);
Tailwind
colors: {
  custom: {
    50: '#8c5eb0',
    500: '#57178e',
    950: '#000000',
  },
}
SCSS
$custom: #57178e;
$custom-light: #8c5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#57178e",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 272.269,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38102,
    "c": 0.17779,
    "h": 302.6
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#57178E
secondary
#7CC040
accent
#EF398D
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #57178E

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

Preview Lab → · Contrast checker → · Palette generator →

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