#57178F#57178F

#57178F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.179 H 302.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#57178F
RGBrgb(87, 23, 143)
HSLhsl(272, 72%, 33%)
HSVhsv(272, 84%, 56%)
CMYKcmyk(39.2%, 83.9%, 0%, 43.9%)
CIE-LABlab(25.63, 50.08, -52.92)
CIE-LCHlch(25.63, 72.86, 313.42°)
OKLaboklab(38.19% 0.0954 -0.1512)
OKLCHoklch(38.19% 0.179 302.3)
XYZxyz(9.1936, 4.6222, 26.3891)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57178F #4F8F17
analogous
#1B178F #57178F #8F178B
triadic
#57178F #8F5717 #178F57
tetradic
#57178F #8F1B17 #4F8F17 #178B8F
square
#57178F #8F1B17 #4F8F17 #178B8F
split-complementary
#57178F #8B8F17 #178F1B
monochromatic
#170626 #370F5A #57178F #771FC4 #9640E0

Accessibility & contrast

On white

10.91
#57178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57178F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57178F#FFFFFF#000000##FFFFFF
##57178F1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#4B3955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57178f;
/* rgb */ color: rgb(87, 23, 143);
/* oklch */ color: oklch(38.2% 0.179 302.3);
Tailwind
colors: {
  custom: {
    50: '#8d5eb1',
    500: '#57178f',
    950: '#000000',
  },
}
SCSS
$custom: #57178f;
$custom-light: #8d5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#57178f",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 272,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38193,
    "c": 0.17877,
    "h": 302.3
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#57178F
secondary
#7DC141
accent
#EF398E
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #57178F

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

Preview Lab → · Contrast checker → · Palette generator →

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