#57167A#57167A

#57167A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.159 H 310.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#57167A
RGBrgb(87, 22, 122)
HSLhsl(279, 69%, 28%)
HSVhsv(279, 82%, 48%)
CMYKcmyk(28.7%, 82%, 0%, 52.2%)
CIE-LABlab(23.69, 45.55, -42.89)
CIE-LCHlch(23.69, 62.56, 316.72°)
OKLaboklab(36.28% 0.1023 -0.1217)
OKLCHoklch(36.28% 0.159 310)
XYZxyz(7.7295, 4.0054, 18.7745)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57167A #397A16
analogous
#25167A #57167A #7A166B
triadic
#57167A #7A5716 #167A57
tetradic
#57167A #7A2516 #397A16 #166B7A
square
#57167A #7A2516 #397A16 #166B7A
split-complementary
#57167A #6B7A16 #167A25
monochromatic
#12051A #320D46 #57167A #7C1FAE #9F31DA

Accessibility & contrast

On white

11.66
#57167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#57167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57167A
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57167A#FFFFFF#000000##FFFFFF
##57167A1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#522F48
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #57167a;
/* rgb */ color: rgb(87, 22, 122);
/* oklch */ color: oklch(36.3% 0.159 310.0);
Tailwind
colors: {
  custom: {
    50: '#8b5ca1',
    500: '#57167a',
    950: '#000000',
  },
}
SCSS
$custom: #57167a;
$custom-light: #8b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#57167a",
  "rgb": {
    "r": 87,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 279,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36278,
    "c": 0.15898,
    "h": 310
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#57167A
secondary
#65AF3D
accent
#EC3C79
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57167A

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

Preview Lab → · Contrast checker → · Palette generator →

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