#57228D#57228D

#57228D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.166 H 301.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#57228D
RGBrgb(87, 34, 141)
HSLhsl(270, 61%, 34%)
HSVhsv(270, 76%, 55%)
CMYKcmyk(38.3%, 75.9%, 0%, 44.7%)
CIE-LABlab(27.00, 45.14, -49.44)
CIE-LCHlch(27.00, 66.95, 312.39°)
OKLaboklab(39.1% 0.0867 -0.1411)
OKLCHoklch(39.1% 0.166 301.6)
XYZxyz(9.3091, 5.0933, 25.6868)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57228D #588D22
analogous
#22228D #57228D #8D228D
triadic
#57228D #8D5722 #228D57
tetradic
#57228D #8D2222 #588D22 #228D8D
square
#57228D #8D2222 #588D22 #228D8D
split-complementary
#57228D #8D8D22 #228D22
monochromatic
#1A0A2A #39165C #57228D #752EBE #9454D6

Accessibility & contrast

On white

10.40
#57228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#57228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57228D
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57228D#FFFFFF#000000##FFFFFF
##57228D1.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)
#003F90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#4B3D56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57228d;
/* rgb */ color: rgb(87, 34, 141);
/* oklch */ color: oklch(39.1% 0.166 301.6);
Tailwind
colors: {
  custom: {
    50: '#8c63af',
    500: '#57228d',
    950: '#000000',
  },
}
SCSS
$custom: #57228d;
$custom-light: #8c63af;
$custom-dark: #000000;
JSON
{
  "hex": "#57228d",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 269.72,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39096,
    "c": 0.16557,
    "h": 301.6
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#57228D
secondary
#86B951
accent
#E44495
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #57228D

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

Preview Lab → · Contrast checker → · Palette generator →

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