#57218D#57218D

#57218D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.167 H 301.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#57218D
RGBrgb(87, 33, 141)
HSLhsl(270, 62%, 34%)
HSVhsv(270, 77%, 55%)
CMYKcmyk(38.3%, 76.6%, 0%, 44.7%)
CIE-LABlab(26.84, 45.59, -49.70)
CIE-LCHlch(26.84, 67.44, 312.53°)
OKLaboklab(38.98% 0.0876 -0.1418)
OKLCHoklch(38.98% 0.167 301.7)
XYZxyz(9.2809, 5.0370, 25.6774)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57218D #578D21
analogous
#21218D #57218D #8D218D
triadic
#57218D #8D5721 #218D57
tetradic
#57218D #8D2121 #578D21 #218D8D
square
#57218D #8D2121 #578D21 #218D8D
split-complementary
#57218D #8D8D21 #218D21
monochromatic
#1A0A2A #38155B #57218D #762DBF #9452D6

Accessibility & contrast

On white

10.46
#57218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57218D
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57218D#FFFFFF#000000##FFFFFF
##57218D1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#4B3D55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #57218d;
/* rgb */ color: rgb(87, 33, 141);
/* oklch */ color: oklch(39.0% 0.167 301.7);
Tailwind
colors: {
  custom: {
    50: '#8c62af',
    500: '#57218d',
    950: '#000000',
  },
}
SCSS
$custom: #57218d;
$custom-light: #8c62af;
$custom-dark: #000000;
JSON
{
  "hex": "#57218d",
  "rgb": {
    "r": 87,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 270,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38983,
    "c": 0.16671,
    "h": 301.7
  },
  "luminance": 0.05037
}

Semantic roles & 50–950 ramp

primary
#57218D
secondary
#85BA50
accent
#E54394
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #57218D

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

Preview Lab → · Contrast checker → · Palette generator →

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