#57168C#57168C

#57168C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.177 H 303.4°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#57168C
RGBrgb(87, 22, 140)
HSLhsl(273, 73%, 32%)
HSVhsv(273, 84%, 55%)
CMYKcmyk(37.9%, 84.3%, 0%, 45.1%)
CIE-LABlab(25.24, 49.71, -51.69)
CIE-LCHlch(25.24, 71.72, 313.88°)
OKLaboklab(37.84% 0.0971 -0.1476)
OKLCHoklch(37.84% 0.177 303.4)
XYZxyz(8.9499, 4.4935, 25.2017)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57168C #4B8C16
analogous
#1C168C #57168C #8C1686
triadic
#57168C #8C5716 #168C57
tetradic
#57168C #8C1C16 #4B8C16 #16868C
square
#57168C #8C1C16 #4B8C16 #16868C
split-complementary
#57168C #868C16 #168C1C
monochromatic
#150522 #360E57 #57168C #781EC1 #973CE0

Accessibility & contrast

On white

11.06
#57168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#57168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57168C
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57168C#FFFFFF#000000##FFFFFF
##57168C1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #57168c;
/* rgb */ color: rgb(87, 22, 140);
/* oklch */ color: oklch(37.8% 0.177 303.4);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#57168c',
    950: '#000000',
  },
}
SCSS
$custom: #57168c;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#57168c",
  "rgb": {
    "r": 87,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 273.051,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37839,
    "c": 0.17666,
    "h": 303.4
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#57168C
secondary
#78C03E
accent
#F0388B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57168C

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

Preview Lab → · Contrast checker → · Palette generator →

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