#57217C#57217C

#57217C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.148 H 307.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#57217C
RGBrgb(87, 33, 124)
HSLhsl(276, 58%, 31%)
HSVhsv(276, 73%, 49%)
CMYKcmyk(29.8%, 73.4%, 0%, 51.4%)
CIE-LABlab(25.47, 41.38, -41.27)
CIE-LCHlch(25.47, 58.45, 315.08°)
OKLaboklab(37.59% 0.091 -0.117)
OKLCHoklch(37.59% 0.148 307.9)
XYZxyz(8.1117, 4.5693, 19.5195)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57217C #467C21
analogous
#29217C #57217C #7C2173
triadic
#57217C #7C5721 #217C57
tetradic
#57217C #7C2921 #467C21 #21737C
square
#57217C #7C2921 #467C21 #21737C
split-complementary
#57217C #737C21 #217C29
monochromatic
#13071B #35144C #57217C #792EAC #9849CF

Accessibility & contrast

On white

10.97
#57217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#57217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57217C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57217C#FFFFFF#000000##FFFFFF
##57217C1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#073D7A
Tritanopia (blue-blind)
#51364C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57217c;
/* rgb */ color: rgb(87, 33, 124);
/* oklch */ color: oklch(37.6% 0.148 307.9);
Tailwind
colors: {
  custom: {
    50: '#8a61a3',
    500: '#57217c',
    950: '#000000',
  },
}
SCSS
$custom: #57217c;
$custom-light: #8a61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#57217c",
  "rgb": {
    "r": 87,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 275.604,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37585,
    "c": 0.14826,
    "h": 307.9
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

primary
#57217C
secondary
#73AF4A
accent
#E14785
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57217C

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

Preview Lab → · Contrast checker → · Palette generator →

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