#57218C#57218C

#57218C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.166 H 302.0°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#57218C
RGBrgb(87, 33, 140)
HSLhsl(270, 62%, 34%)
HSVhsv(270, 76%, 55%)
CMYKcmyk(37.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(26.76, 45.34, -49.22)
CIE-LCHlch(26.76, 66.92, 312.65°)
OKLaboklab(38.9% 0.0879 -0.1404)
OKLCHoklch(38.9% 0.166 302)
XYZxyz(9.2068, 5.0074, 25.2873)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57218C #568C21
analogous
#21218C #57218C #8C218C
triadic
#57218C #8C5721 #218C57
tetradic
#57218C #8C2121 #568C21 #218C8C
square
#57218C #8C2121 #568C21 #218C8C
split-complementary
#57218C #8C8C21 #218C21
monochromatic
#190A29 #38155A #57218C #762DBE #9451D6

Accessibility & contrast

On white

10.49
#57218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#57218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57218C
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57218C#FFFFFF#000000##FFFFFF
##57218C1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#4C3C55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #57218c;
/* rgb */ color: rgb(87, 33, 140);
/* oklch */ color: oklch(38.9% 0.166 302.0);
Tailwind
colors: {
  custom: {
    50: '#8c62ae',
    500: '#57218c',
    950: '#000000',
  },
}
SCSS
$custom: #57218c;
$custom-light: #8c62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#57218c",
  "rgb": {
    "r": 87,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 270.28,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38898,
    "c": 0.16563,
    "h": 302
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#57218C
secondary
#84B94F
accent
#E54393
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #57218C

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

Preview Lab → · Contrast checker → · Palette generator →

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