#57158C#57158C

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

Color values

HEX#57158C
RGBrgb(87, 21, 140)
HSLhsl(273, 74%, 32%)
HSVhsv(273, 85%, 55%)
CMYKcmyk(37.9%, 85%, 0%, 45.1%)
CIE-LABlab(25.13, 50.05, -51.88)
CIE-LCHlch(25.13, 72.09, 313.97°)
OKLaboklab(37.76% 0.0978 -0.1481)
OKLCHoklch(37.76% 0.178 303.4)
XYZxyz(8.9312, 4.4560, 25.1954)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57158C #4A8C15
analogous
#1B158C #57158C #8C1586
triadic
#57158C #8C5715 #158C57
tetradic
#57158C #8C1B15 #4A8C15 #15868C
square
#57158C #8C1B15 #4A8C15 #15868C
split-complementary
#57158C #868C15 #158C1B
monochromatic
#150522 #360D57 #57158C #781DC1 #973AE1

Accessibility & contrast

On white

11.10
#57158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#57158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57158C
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57158C#FFFFFF#000000##FFFFFF
##57158C1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#4C3752
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57158c;
/* rgb */ color: rgb(87, 21, 140);
/* oklch */ color: oklch(37.8% 0.178 303.4);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#57158c',
    950: '#000000',
  },
}
SCSS
$custom: #57158c;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#57158c",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 273.277,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37759,
    "c": 0.17751,
    "h": 303.4
  },
  "luminance": 0.04456
}

Semantic roles & 50–950 ramp

primary
#57158C
secondary
#77C03D
accent
#F1378A
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57158C

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

Preview Lab → · Contrast checker → · Palette generator →

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