#57188B#57188B

#57188B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.174 H 303.5°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#57188B
RGBrgb(87, 24, 139)
HSLhsl(273, 71%, 32%)
HSVhsv(273, 83%, 55%)
CMYKcmyk(37.4%, 82.7%, 0%, 45.5%)
CIE-LABlab(25.39, 48.77, -50.82)
CIE-LCHlch(25.39, 70.44, 313.82°)
OKLaboklab(37.92% 0.0959 -0.145)
OKLCHoklch(37.92% 0.174 303.5)
XYZxyz(8.9162, 4.5436, 24.8284)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57188B #4C8B18
analogous
#1E188B #57188B #8B1885
triadic
#57188B #8B5718 #188B57
tetradic
#57188B #8B1E18 #4C8B18 #18858B
square
#57188B #8B1E18 #4C8B18 #18858B
split-complementary
#57188B #858B18 #188B1E
monochromatic
#160623 #360F57 #57188B #7821BF #963FDE

Accessibility & contrast

On white

11.00
#57188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#57188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57188B
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57188B#FFFFFF#000000##FFFFFF
##57188B1.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)
#003B8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#4C3852
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57188b;
/* rgb */ color: rgb(87, 24, 139);
/* oklch */ color: oklch(37.9% 0.174 303.5);
Tailwind
colors: {
  custom: {
    50: '#8c5eae',
    500: '#57188b',
    950: '#000000',
  },
}
SCSS
$custom: #57188b;
$custom-light: #8c5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#57188b",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 272.87,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37917,
    "c": 0.1739,
    "h": 303.5
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#57188B
secondary
#79BE40
accent
#ED3A8B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #57188B

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

Preview Lab → · Contrast checker → · Palette generator →

#57188B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva