#57158F#57158F

#57158F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.180 H 302.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#57158F
RGBrgb(87, 21, 143)
HSLhsl(272, 74%, 32%)
HSVhsv(272, 85%, 56%)
CMYKcmyk(39.2%, 85.3%, 0%, 43.9%)
CIE-LABlab(25.40, 50.76, -53.30)
CIE-LCHlch(25.40, 73.60, 313.60°)
OKLaboklab(38.03% 0.0968 -0.1523)
OKLCHoklch(38.03% 0.18 302.4)
XYZxyz(9.1554, 4.5457, 26.3763)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57158F #4D8F15
analogous
#1A158F #57158F #8F158A
triadic
#57158F #8F5715 #158F57
tetradic
#57158F #8F1A15 #4D8F15 #158A8F
square
#57158F #8F1A15 #4D8F15 #158A8F
split-complementary
#57158F #8A8F15 #158F1A
monochromatic
#160524 #370D5A #57158F #771DC4 #963CE2

Accessibility & contrast

On white

11.00
#57158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#57158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57158F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57158F#FFFFFF#000000##FFFFFF
##57158F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#4B3854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57158f;
/* rgb */ color: rgb(87, 21, 143);
/* oklch */ color: oklch(38.0% 0.180 302.4);
Tailwind
colors: {
  custom: {
    50: '#8d5db1',
    500: '#57158f',
    950: '#000000',
  },
}
SCSS
$custom: #57158f;
$custom-light: #8d5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#57158f",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 272.459,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38033,
    "c": 0.18045,
    "h": 302.4
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#57158F
secondary
#7AC23E
accent
#F1378C
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #57158F

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

Preview Lab → · Contrast checker → · Palette generator →

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