#57186C#57186C

#57186C is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.143 H 316.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#57186C
RGBrgb(87, 24, 108)
HSLhsl(285, 64%, 26%)
HSVhsv(285, 78%, 42%)
CMYKcmyk(19.4%, 77.8%, 0%, 57.6%)
CIE-LABlab(22.87, 41.67, -35.22)
CIE-LCHlch(22.87, 54.56, 319.80°)
OKLaboklab(35.36% 0.1031 -0.0992)
OKLCHoklch(35.36% 0.143 316.1)
XYZxyz(6.9635, 3.7625, 14.5439)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57186C #2D6C18
analogous
#2D186C #57186C #6C1857
triadic
#57186C #6C5718 #186C57
tetradic
#57186C #6C2D18 #2D6C18 #18576C
square
#57186C #6C2D18 #2D6C18 #18576C
split-complementary
#57186C #576C18 #186C2D
monochromatic
#140619 #2F0D3A #57186C #7F239E #A82ED0

Accessibility & contrast

On white

11.98
#57186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57186C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57186C#FFFFFF#000000##FFFFFF
##57186C1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#17386A
Tritanopia (blue-blind)
#562A41
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #57186c;
/* rgb */ color: rgb(87, 24, 108);
/* oklch */ color: oklch(35.4% 0.143 316.1);
Tailwind
colors: {
  custom: {
    50: '#8a5c97',
    500: '#57186c',
    950: '#000000',
  },
}
SCSS
$custom: #57186c;
$custom-light: #8a5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#57186c",
  "rgb": {
    "r": 87,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 285,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35357,
    "c": 0.14304,
    "h": 316.1
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#57186C
secondary
#57A23E
accent
#E7416B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #57186C

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

Preview Lab → · Contrast checker → · Palette generator →

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