#57168A#57168A

#57168A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.7% C 0.175 H 304.0°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#57168A
RGBrgb(87, 22, 138)
HSLhsl(274, 73%, 31%)
HSVhsv(274, 84%, 54%)
CMYKcmyk(37%, 84.1%, 0%, 45.9%)
CIE-LABlab(25.06, 49.24, -50.74)
CIE-LCHlch(25.06, 70.71, 314.14°)
OKLaboklab(37.66% 0.0978 -0.1448)
OKLCHoklch(37.66% 0.175 304)
XYZxyz(8.8038, 4.4351, 24.4321)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57168A #498A16
analogous
#1D168A #57168A #8A1683
triadic
#57168A #8A5716 #168A57
tetradic
#57168A #8A1D16 #498A16 #16838A
square
#57168A #8A1D16 #498A16 #16838A
split-complementary
#57168A #838A16 #168A1D
monochromatic
#140520 #360E55 #57168A #781EBF #973BE0

Accessibility & contrast

On white

11.13
#57168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#57168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57168A
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57168A#FFFFFF#000000##FFFFFF
##57168A1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#4D3651
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #57168a;
/* rgb */ color: rgb(87, 22, 138);
/* oklch */ color: oklch(37.7% 0.175 304.0);
Tailwind
colors: {
  custom: {
    50: '#8c5dad',
    500: '#57168a',
    950: '#000000',
  },
}
SCSS
$custom: #57168a;
$custom-light: #8c5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#57168a",
  "rgb": {
    "r": 87,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 273.621,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37659,
    "c": 0.17469,
    "h": 304
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#57168A
secondary
#76BE3E
accent
#EF3989
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57168A

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

Preview Lab → · Contrast checker → · Palette generator →

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