#57158D#57158D

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

Color values

HEX#57158D
RGBrgb(87, 21, 141)
HSLhsl(273, 74%, 32%)
HSVhsv(273, 85%, 55%)
CMYKcmyk(38.3%, 85.1%, 0%, 44.7%)
CIE-LABlab(25.22, 50.29, -52.35)
CIE-LCHlch(25.22, 72.59, 313.85°)
OKLaboklab(37.85% 0.0975 -0.1495)
OKLCHoklch(37.85% 0.178 303.1)
XYZxyz(9.0052, 4.4856, 25.5855)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57158D #4B8D15
analogous
#1B158D #57158D #8D1587
triadic
#57158D #8D5715 #158D57
tetradic
#57158D #8D1B15 #4B8D15 #15878D
square
#57158D #8D1B15 #4B8D15 #15878D
split-complementary
#57158D #878D15 #158D1B
monochromatic
#150522 #360D58 #57158D #781DC2 #973BE2

Accessibility & contrast

On white

11.07
#57158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57158D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57158D#FFFFFF#000000##FFFFFF
##57158D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#4C3753
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57158d;
/* rgb */ color: rgb(87, 21, 141);
/* oklch */ color: oklch(37.9% 0.178 303.1);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#57158d',
    950: '#000000',
  },
}
SCSS
$custom: #57158d;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#57158d",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 273,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3785,
    "c": 0.17849,
    "h": 303.1
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#57158D
secondary
#78C13D
accent
#F1378B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57158D

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

Preview Lab → · Contrast checker → · Palette generator →

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