#57218F#57218F

#57218F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.169 H 301.1°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#57218F
RGBrgb(87, 33, 143)
HSLhsl(269, 63%, 35%)
HSVhsv(269, 77%, 56%)
CMYKcmyk(39.2%, 76.9%, 0%, 43.9%)
CIE-LABlab(27.01, 46.09, -50.67)
CIE-LCHlch(27.01, 68.49, 312.29°)
OKLaboklab(39.16% 0.0872 -0.1446)
OKLCHoklch(39.16% 0.169 301.1)
XYZxyz(9.4310, 5.0971, 26.4682)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57218F #598F21
analogous
#21228F #57218F #8E218F
triadic
#57218F #8F5721 #218F57
tetradic
#57218F #8F2122 #598F21 #218F8E
square
#57218F #8F2122 #598F21 #218F8E
split-complementary
#57218F #8F8E21 #228F21
monochromatic
#1A0A2C #39165D #57218F #752CC1 #9453D7

Accessibility & contrast

On white

10.40
#57218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#57218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57218F
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57218F#FFFFFF#000000##FFFFFF
##57218F1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#4A3D57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57218f;
/* rgb */ color: rgb(87, 33, 143);
/* oklch */ color: oklch(39.2% 0.169 301.1);
Tailwind
colors: {
  custom: {
    50: '#8c62b1',
    500: '#57218f',
    950: '#000000',
  },
}
SCSS
$custom: #57218f;
$custom-light: #8c62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#57218f",
  "rgb": {
    "r": 87,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 269.455,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39156,
    "c": 0.16887,
    "h": 301.1
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#57218F
secondary
#87BB51
accent
#E64295
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #57218F

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

Preview Lab → · Contrast checker → · Palette generator →

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