#57186B#57186B

#57186B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.142 H 316.6°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#57186B
RGBrgb(87, 24, 107)
HSLhsl(286, 63%, 26%)
HSVhsv(286, 78%, 42%)
CMYKcmyk(18.7%, 77.6%, 0%, 58%)
CIE-LABlab(22.80, 41.46, -34.69)
CIE-LCHlch(22.80, 54.06, 320.08°)
OKLaboklab(35.28% 0.1032 -0.0976)
OKLCHoklch(35.28% 0.142 316.6)
XYZxyz(6.9106, 3.7413, 14.2652)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57186B #2C6B18
analogous
#2D186B #57186B #6B1855
triadic
#57186B #6B5718 #186B57
tetradic
#57186B #6B2D18 #2C6B18 #18556B
square
#57186B #6B2D18 #2C6B18 #18556B
split-complementary
#57186B #556B18 #186B2D
monochromatic
#140619 #2E0D39 #57186B #80239D #A82ECF

Accessibility & contrast

On white

12.01
#57186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#57186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57186B
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57186B#FFFFFF#000000##FFFFFF
##57186B1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#183869
Tritanopia (blue-blind)
#562A40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #57186b;
/* rgb */ color: rgb(87, 24, 107);
/* oklch */ color: oklch(35.3% 0.142 316.6);
Tailwind
colors: {
  custom: {
    50: '#8a5c96',
    500: '#57186b',
    950: '#000000',
  },
}
SCSS
$custom: #57186b;
$custom-light: #8a5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#57186b",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 285.542,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35282,
    "c": 0.14207,
    "h": 316.6
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#57186B
secondary
#56A13E
accent
#E64169
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #57186B

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

Preview Lab → · Contrast checker → · Palette generator →

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