#57228F#57228F

#57228F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.168 H 300.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#57228F
RGBrgb(87, 34, 143)
HSLhsl(269, 62%, 35%)
HSVhsv(269, 76%, 56%)
CMYKcmyk(39.2%, 76.2%, 0%, 43.9%)
CIE-LABlab(27.17, 45.64, -50.41)
CIE-LCHlch(27.17, 68.00, 312.16°)
OKLaboklab(39.27% 0.0862 -0.1439)
OKLCHoklch(39.27% 0.168 300.9)
XYZxyz(9.4592, 5.1534, 26.4776)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57228F #5A8F22
analogous
#22248F #57228F #8D228F
triadic
#57228F #8F5722 #228F57
tetradic
#57228F #8F2224 #5A8F22 #228F8D
square
#57228F #8F2224 #5A8F22 #228F8D
split-complementary
#57228F #8F8D22 #248F22
monochromatic
#1B0A2C #39165E #57228F #752EC0 #9455D7

Accessibility & contrast

On white

10.34
#57228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#57228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57228F
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57228F#FFFFFF#000000##FFFFFF
##57228F1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #57228f;
/* rgb */ color: rgb(87, 34, 143);
/* oklch */ color: oklch(39.3% 0.168 300.9);
Tailwind
colors: {
  custom: {
    50: '#8c63b1',
    500: '#57228f',
    950: '#000000',
  },
}
SCSS
$custom: #57228f;
$custom-light: #8c63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#57228f",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 269.174,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39267,
    "c": 0.16774,
    "h": 300.9
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#57228F
secondary
#88BA52
accent
#E54396
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #57228F

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

Preview Lab → · Contrast checker → · Palette generator →

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