#57157D#57157D

#57157D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.163 H 308.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#57157D
RGBrgb(87, 21, 125)
HSLhsl(278, 71%, 29%)
HSVhsv(278, 83%, 49%)
CMYKcmyk(30.4%, 83.2%, 0%, 51%)
CIE-LABlab(23.81, 46.59, -44.59)
CIE-LCHlch(23.81, 64.49, 316.25°)
OKLaboklab(36.44% 0.1024 -0.1267)
OKLCHoklch(36.44% 0.163 308.9)
XYZxyz(7.8996, 4.0434, 19.7624)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57157D #3B7D15
analogous
#23157D #57157D #7D156F
triadic
#57157D #7D5715 #157D57
tetradic
#57157D #7D2315 #3B7D15 #156F7D
square
#57157D #7D2315 #3B7D15 #156F7D
split-complementary
#57157D #6F7D15 #157D23
monochromatic
#12041A #330C49 #57157D #7B1EB1 #9D30DC

Accessibility & contrast

On white

11.61
#57157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#57157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57157D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57157D#FFFFFF#000000##FFFFFF
##57157D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#51304A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #57157d;
/* rgb */ color: rgb(87, 21, 125);
/* oklch */ color: oklch(36.4% 0.163 308.9);
Tailwind
colors: {
  custom: {
    50: '#8b5ca3',
    500: '#57157d',
    950: '#000000',
  },
}
SCSS
$custom: #57157d;
$custom-light: #8b5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#57157d",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 278.077,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36443,
    "c": 0.16288,
    "h": 308.9
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#57157D
secondary
#67B23C
accent
#EE3A7C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57157D

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

Preview Lab → · Contrast checker → · Palette generator →

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