#57157B#57157B

#57157B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.161 H 309.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#57157B
RGBrgb(87, 21, 123)
HSLhsl(279, 71%, 28%)
HSVhsv(279, 83%, 48%)
CMYKcmyk(29.3%, 82.9%, 0%, 51.8%)
CIE-LABlab(23.65, 46.14, -43.59)
CIE-LCHlch(23.65, 63.47, 316.62°)
OKLaboklab(36.27% 0.1029 -0.1238)
OKLCHoklch(36.27% 0.161 309.7)
XYZxyz(7.7731, 3.9928, 19.0963)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57157B #397B15
analogous
#24157B #57157B #7B156C
triadic
#57157B #7B5715 #157B57
tetradic
#57157B #7B2415 #397B15 #156C7B
square
#57157B #7B2415 #397B15 #156C7B
split-complementary
#57157B #6C7B15 #157B24
monochromatic
#12041A #320C47 #57157B #7C1EAF #9F2FDB

Accessibility & contrast

On white

11.68
#57157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#57157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57157B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57157B#FFFFFF#000000##FFFFFF
##57157B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#522F49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #57157b;
/* rgb */ color: rgb(87, 21, 123);
/* oklch */ color: oklch(36.3% 0.161 309.7);
Tailwind
colors: {
  custom: {
    50: '#8b5ca2',
    500: '#57157b',
    950: '#000000',
  },
}
SCSS
$custom: #57157b;
$custom-light: #8b5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#57157b",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 278.824,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36274,
    "c": 0.16095,
    "h": 309.7
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#57157B
secondary
#65B03B
accent
#EE3A7A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57157B

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

Preview Lab → · Contrast checker → · Palette generator →

#57157B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva