#57158A#57158A

#57158A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.176 H 304.1°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#57158A
RGBrgb(87, 21, 138)
HSLhsl(274, 74%, 31%)
HSVhsv(274, 85%, 54%)
CMYKcmyk(37%, 84.8%, 0%, 45.9%)
CIE-LABlab(24.94, 49.58, -50.93)
CIE-LCHlch(24.94, 71.08, 314.23°)
OKLaboklab(37.58% 0.0985 -0.1453)
OKLCHoklch(37.58% 0.176 304.1)
XYZxyz(8.7850, 4.3976, 24.4258)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57158A #488A15
analogous
#1C158A #57158A #8A1582
triadic
#57158A #8A5715 #158A57
tetradic
#57158A #8A1C15 #488A15 #15828A
square
#57158A #8A1C15 #488A15 #15828A
split-complementary
#57158A #828A15 #158A1C
monochromatic
#140520 #360D55 #57158A #781DBF #9739E1

Accessibility & contrast

On white

11.17
#57158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#57158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57158A
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57158A#FFFFFF#000000##FFFFFF
##57158A1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#4D3651
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #57158a;
/* rgb */ color: rgb(87, 21, 138);
/* oklch */ color: oklch(37.6% 0.176 304.1);
Tailwind
colors: {
  custom: {
    50: '#8c5dad',
    500: '#57158a',
    950: '#000000',
  },
}
SCSS
$custom: #57158a;
$custom-light: #8c5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#57158a",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 273.846,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37579,
    "c": 0.17555,
    "h": 304.1
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#57158A
secondary
#75BE3D
accent
#F03888
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57158A

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

Preview Lab → · Contrast checker → · Palette generator →

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