#57159E#57159E

#57159E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.4% C 0.195 H 297.9°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#57159E
RGBrgb(87, 21, 158)
HSLhsl(269, 77%, 35%)
HSVhsv(269, 87%, 62%)
CMYKcmyk(44.9%, 86.7%, 0%, 38%)
CIE-LABlab(26.82, 54.33, -60.19)
CIE-LCHlch(26.82, 81.08, 312.07°)
OKLaboklab(39.45% 0.0913 -0.1725)
OKLCHoklch(39.45% 0.195 297.9)
XYZxyz(10.3686, 5.0310, 32.7659)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57159E #5C9E15
analogous
#15189E #57159E #9B159E
triadic
#57159E #9E5715 #159E57
tetradic
#57159E #9E1518 #5C9E15 #159E9B
square
#57159E #9E1518 #5C9E15 #159E9B
split-complementary
#57159E #9E9B15 #189E15
monochromatic
#1C0732 #390E68 #57159E #751CD4 #9447E7

Accessibility & contrast

On white

10.47
#57159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#57159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57159E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57159E#FFFFFF#000000##FFFFFF
##57159E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#443F5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #57159e;
/* rgb */ color: rgb(87, 21, 158);
/* oklch */ color: oklch(39.4% 0.195 297.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ebc',
    500: '#57159e',
    950: '#000000',
  },
}
SCSS
$custom: #57159e;
$custom-light: #8e5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#57159e",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 268.905,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39446,
    "c": 0.19518,
    "h": 297.9
  },
  "luminance": 0.05031
}

Semantic roles & 50–950 ramp

primary
#57159E
secondary
#8AC747
accent
#F33597
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #57159E

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

Preview Lab → · Contrast checker → · Palette generator →

#57159E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva