#57158E#57158E

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

Color values

HEX#57158E
RGBrgb(87, 21, 142)
HSLhsl(273, 74%, 32%)
HSVhsv(273, 85%, 56%)
CMYKcmyk(38.7%, 85.2%, 0%, 44.3%)
CIE-LABlab(25.31, 50.52, -52.83)
CIE-LCHlch(25.31, 73.10, 313.72°)
OKLaboklab(37.94% 0.0972 -0.1509)
OKLCHoklch(37.94% 0.179 302.8)
XYZxyz(9.0800, 4.5155, 25.9792)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57158E #4C8E15
analogous
#1A158E #57158E #8E1589
triadic
#57158E #8E5715 #158E57
tetradic
#57158E #8E1A15 #4C8E15 #15898E
square
#57158E #8E1A15 #4C8E15 #15898E
split-complementary
#57158E #898E15 #158E1A
monochromatic
#160523 #360D59 #57158E #781DC3 #963BE2

Accessibility & contrast

On white

11.03
#57158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#57158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57158E
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57158E#FFFFFF#000000##FFFFFF
##57158E1.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)
#003B91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#4B3854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57158e;
/* rgb */ color: rgb(87, 21, 142);
/* oklch */ color: oklch(37.9% 0.179 302.8);
Tailwind
colors: {
  custom: {
    50: '#8d5db0',
    500: '#57158e',
    950: '#000000',
  },
}
SCSS
$custom: #57158e;
$custom-light: #8d5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#57158e",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 272.727,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37941,
    "c": 0.17947,
    "h": 302.8
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#57158E
secondary
#79C23D
accent
#F1378B
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #57158E

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

Preview Lab → · Contrast checker → · Palette generator →

#57158E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva