#57218A#57218A

#57218A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.163 H 302.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#57218A
RGBrgb(87, 33, 138)
HSLhsl(271, 61%, 34%)
HSVhsv(271, 76%, 54%)
CMYKcmyk(37%, 76.1%, 0%, 45.9%)
CIE-LABlab(26.59, 44.84, -48.25)
CIE-LCHlch(26.59, 65.86, 312.90°)
OKLaboklab(38.73% 0.0883 -0.1375)
OKLCHoklch(38.73% 0.163 302.7)
XYZxyz(9.0607, 4.9489, 24.5177)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57218A #548A21
analogous
#22218A #57218A #8A2188
triadic
#57218A #8A5721 #218A57
tetradic
#57218A #8A2221 #548A21 #21888A
square
#57218A #8A2221 #548A21 #21888A
split-complementary
#57218A #888A21 #218A22
monochromatic
#190927 #381559 #57218A #762DBB #9550D5

Accessibility & contrast

On white

10.55
#57218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#57218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57218A
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57218A#FFFFFF#000000##FFFFFF
##57218A1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#4C3B54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #57218a;
/* rgb */ color: rgb(87, 33, 138);
/* oklch */ color: oklch(38.7% 0.163 302.7);
Tailwind
colors: {
  custom: {
    50: '#8b62ad',
    500: '#57218a',
    950: '#000000',
  },
}
SCSS
$custom: #57218a;
$custom-light: #8b62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#57218a",
  "rgb": {
    "r": 87,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 270.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38728,
    "c": 0.16347,
    "h": 302.7
  },
  "luminance": 0.04949
}

Semantic roles & 50–950 ramp

primary
#57218A
secondary
#82B94E
accent
#E54392
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #57218A

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

Preview Lab → · Contrast checker → · Palette generator →

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