#57217B#57217B

#57217B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.147 H 308.3°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#57217B
RGBrgb(87, 33, 123)
HSLhsl(276, 58%, 31%)
HSVhsv(276, 73%, 48%)
CMYKcmyk(29.3%, 73.2%, 0%, 51.8%)
CIE-LABlab(25.39, 41.14, -40.76)
CIE-LCHlch(25.39, 57.92, 315.27°)
OKLaboklab(37.51% 0.0912 -0.1155)
OKLCHoklch(37.51% 0.147 308.3)
XYZxyz(8.0488, 4.5441, 19.1881)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57217B #457B21
analogous
#2A217B #57217B #7B2172
triadic
#57217B #7B5721 #217B57
tetradic
#57217B #7B2A21 #457B21 #21727B
square
#57217B #7B2A21 #457B21 #21727B
split-complementary
#57217B #727B21 #217B2A
monochromatic
#13071A #35144B #57217B #792EAB #9948CE

Accessibility & contrast

On white

11.00
#57217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#57217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57217B
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57217B#FFFFFF#000000##FFFFFF
##57217B1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#0A3D79
Tritanopia (blue-blind)
#51354B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57217b;
/* rgb */ color: rgb(87, 33, 123);
/* oklch */ color: oklch(37.5% 0.147 308.3);
Tailwind
colors: {
  custom: {
    50: '#8a61a2',
    500: '#57217b',
    950: '#000000',
  },
}
SCSS
$custom: #57217b;
$custom-light: #8a61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#57217b",
  "rgb": {
    "r": 87,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 276,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37507,
    "c": 0.14717,
    "h": 308.3
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#57217B
secondary
#72AE4A
accent
#E14784
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57217B

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

Preview Lab → · Contrast checker → · Palette generator →

#57217B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva