#57228C#57228C

#57228C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.164 H 301.9°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#57228C
RGBrgb(87, 34, 140)
HSLhsl(270, 61%, 34%)
HSVhsv(270, 76%, 55%)
CMYKcmyk(37.9%, 75.7%, 0%, 45.1%)
CIE-LABlab(26.92, 44.88, -48.96)
CIE-LCHlch(26.92, 66.42, 312.51°)
OKLaboklab(39.01% 0.0869 -0.1396)
OKLCHoklch(39.01% 0.164 301.9)
XYZxyz(9.2350, 5.0637, 25.2967)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57228C #578C22
analogous
#22228C #57228C #8C228C
triadic
#57228C #8C5722 #228C57
tetradic
#57228C #8C2222 #578C22 #228C8C
square
#57228C #8C2222 #578C22 #228C8C
split-complementary
#57228C #8C8C22 #228C22
monochromatic
#1A0A2A #38165B #57228C #762EBD #9453D5

Accessibility & contrast

On white

10.43
#57228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#57228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57228C
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57228C#FFFFFF#000000##FFFFFF
##57228C1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#4C3D55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #57228c;
/* rgb */ color: rgb(87, 34, 140);
/* oklch */ color: oklch(39.0% 0.164 301.9);
Tailwind
colors: {
  custom: {
    50: '#8c63ae',
    500: '#57228c',
    950: '#000000',
  },
}
SCSS
$custom: #57228c;
$custom-light: #8c63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#57228c",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 270,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39011,
    "c": 0.16447,
    "h": 301.9
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

primary
#57228C
secondary
#85B951
accent
#E44494
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #57228C

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

Preview Lab → · Contrast checker → · Palette generator →

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