#57229D#57229D

#57229D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.183 H 296.8°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#57229D
RGBrgb(87, 34, 157)
HSLhsl(266, 64%, 37%)
HSVhsv(266, 78%, 62%)
CMYKcmyk(44.6%, 78.3%, 0%, 38.4%)
CIE-LABlab(28.39, 49.23, -57.01)
CIE-LCHlch(28.39, 75.32, 310.81°)
OKLaboklab(40.5% 0.0825 -0.1633)
OKLCHoklch(40.5% 0.183 296.8)
XYZxyz(10.5867, 5.6044, 32.4157)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57229D #689D22
analogous
#222A9D #57229D #95229D
triadic
#57229D #9D5722 #229D57
tetradic
#57229D #9D222A #689D22 #229D95
square
#57229D #9D222A #689D22 #229D95
split-complementary
#57229D #9D9522 #2A9D22
monochromatic
#1F0C38 #3B176B #57229D #732DCF #945DDC

Accessibility & contrast

On white

9.90
#57229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#57229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57229D
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57229D#FFFFFF#000000##FFFFFF
##57229D1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#44445F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #57229d;
/* rgb */ color: rgb(87, 34, 157);
/* oklch */ color: oklch(40.5% 0.183 296.8);
Tailwind
colors: {
  custom: {
    50: '#8e64bb',
    500: '#57229d',
    950: '#000000',
  },
}
SCSS
$custom: #57229d;
$custom-light: #8e64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#57229d",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 265.854,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.18294,
    "h": 296.8
  },
  "luminance": 0.05605
}

Semantic roles & 50–950 ramp

primary
#57229D
secondary
#94C15A
accent
#E7409F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #57229D

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

Preview Lab → · Contrast checker → · Palette generator →

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