#57168D#57168D

#57168D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.178 H 303.0°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#57168D
RGBrgb(87, 22, 141)
HSLhsl(273, 73%, 32%)
HSVhsv(273, 84%, 55%)
CMYKcmyk(38.3%, 84.4%, 0%, 44.7%)
CIE-LABlab(25.33, 49.95, -52.17)
CIE-LCHlch(25.33, 72.23, 313.76°)
OKLaboklab(37.93% 0.0968 -0.149)
OKLCHoklch(37.93% 0.178 303)
XYZxyz(9.0240, 4.5231, 25.5918)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57168D #4C8D16
analogous
#1C168D #57168D #8D1688
triadic
#57168D #8D5716 #168D57
tetradic
#57168D #8D1C16 #4C8D16 #16888D
square
#57168D #8D1C16 #4C8D16 #16888D
split-complementary
#57168D #888D16 #168D1C
monochromatic
#160523 #360E58 #57168D #781EC2 #963DE1

Accessibility & contrast

On white

11.03
#57168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57168D
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57168D#FFFFFF#000000##FFFFFF
##57168D1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.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: #57168d;
/* rgb */ color: rgb(87, 22, 141);
/* oklch */ color: oklch(37.9% 0.178 303.0);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#57168d',
    950: '#000000',
  },
}
SCSS
$custom: #57168d;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#57168d",
  "rgb": {
    "r": 87,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 272.773,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37929,
    "c": 0.17765,
    "h": 303
  },
  "luminance": 0.04523
}

Semantic roles & 50–950 ramp

primary
#57168D
secondary
#79C13E
accent
#F0388B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57168D

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

Preview Lab → · Contrast checker → · Palette generator →

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