#57218E#57218E

#57218E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.168 H 301.4°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#57218E
RGBrgb(87, 33, 142)
HSLhsl(270, 62%, 34%)
HSVhsv(270, 77%, 56%)
CMYKcmyk(38.7%, 76.8%, 0%, 44.3%)
CIE-LABlab(26.92, 45.84, -50.19)
CIE-LCHlch(26.92, 67.97, 312.41°)
OKLaboklab(39.07% 0.0874 -0.1432)
OKLCHoklch(39.07% 0.168 301.4)
XYZxyz(9.3556, 5.0669, 26.0711)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57218E #588E21
analogous
#21218E #57218E #8E218E
triadic
#57218E #8E5721 #218E57
tetradic
#57218E #8E2121 #588E21 #218E8E
square
#57218E #8E2121 #588E21 #218E8E
split-complementary
#57218E #8E8E21 #218E21
monochromatic
#1A0A2B #39155C #57218E #752DC0 #9452D7

Accessibility & contrast

On white

10.43
#57218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57218E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57218E#FFFFFF#000000##FFFFFF
##57218E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#4B3D56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57218e;
/* rgb */ color: rgb(87, 33, 142);
/* oklch */ color: oklch(39.1% 0.168 301.4);
Tailwind
colors: {
  custom: {
    50: '#8c62b0',
    500: '#57218e',
    950: '#000000',
  },
}
SCSS
$custom: #57218e;
$custom-light: #8c62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#57218e",
  "rgb": {
    "r": 87,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 269.725,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39069,
    "c": 0.16779,
    "h": 301.4
  },
  "luminance": 0.05067
}

Semantic roles & 50–950 ramp

primary
#57218E
secondary
#86BA50
accent
#E54295
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #57218E

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

Preview Lab → · Contrast checker → · Palette generator →

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