#57228E#57228E

#57228E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.167 H 301.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#57228E
RGBrgb(87, 34, 142)
HSLhsl(269, 61%, 35%)
HSVhsv(269, 76%, 56%)
CMYKcmyk(38.7%, 76.1%, 0%, 44.3%)
CIE-LABlab(27.08, 45.39, -49.93)
CIE-LCHlch(27.08, 67.47, 312.27°)
OKLaboklab(39.18% 0.0865 -0.1425)
OKLCHoklch(39.18% 0.167 301.3)
XYZxyz(9.3838, 5.1232, 26.0804)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57228E #598E22
analogous
#22238E #57228E #8D228E
triadic
#57228E #8E5722 #228E57
tetradic
#57228E #8E2223 #598E22 #228E8D
square
#57228E #8E2223 #598E22 #228E8D
split-complementary
#57228E #8E8D22 #238E22
monochromatic
#1A0A2B #39165D #57228E #752EBF #9454D6

Accessibility & contrast

On white

10.37
#57228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57228E
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57228E#FFFFFF#000000##FFFFFF
##57228E1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#4B3D56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57228e;
/* rgb */ color: rgb(87, 34, 142);
/* oklch */ color: oklch(39.2% 0.167 301.3);
Tailwind
colors: {
  custom: {
    50: '#8c63b0',
    500: '#57228e',
    950: '#000000',
  },
}
SCSS
$custom: #57228e;
$custom-light: #8c63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#57228e",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 269.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39181,
    "c": 0.16666,
    "h": 301.3
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#57228E
secondary
#87BA52
accent
#E44395
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #57228E

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

Preview Lab → · Contrast checker → · Palette generator →

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