#57156B#57156B

#57156B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.146 H 316.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#57156B
RGBrgb(87, 21, 107)
HSLhsl(286, 67%, 25%)
HSVhsv(286, 80%, 42%)
CMYKcmyk(18.7%, 80.4%, 0%, 58%)
CIE-LABlab(22.39, 42.63, -35.34)
CIE-LCHlch(22.39, 55.38, 320.34°)
OKLaboklab(34.99% 0.1062 -0.0995)
OKLCHoklch(34.99% 0.146 316.9)
XYZxyz(6.8521, 3.6244, 14.2457)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57156B #296B15
analogous
#2C156B #57156B #6B1554
triadic
#57156B #6B5715 #156B57
tetradic
#57156B #6B2C15 #296B15 #15546B
square
#57156B #6B2C15 #296B15 #15546B
split-complementary
#57156B #546B15 #156B2C
monochromatic
#15051A #2D0B38 #57156B #811F9E #AA29D1

Accessibility & contrast

On white

12.18
#57156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#57156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57156B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57156B#FFFFFF#000000##FFFFFF
##57156B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#163769
Tritanopia (blue-blind)
#56283F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #57156b;
/* rgb */ color: rgb(87, 21, 107);
/* oklch */ color: oklch(35.0% 0.146 316.9);
Tailwind
colors: {
  custom: {
    50: '#8a5b96',
    500: '#57156b',
    950: '#000000',
  },
}
SCSS
$custom: #57156b;
$custom-light: #8a5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#57156b",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 286.047,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34993,
    "c": 0.14555,
    "h": 316.9
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#57156B
secondary
#52A23A
accent
#EA3E66
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #57156B

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

Preview Lab → · Contrast checker → · Palette generator →

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