#57229C#57229C

#57229C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.182 H 297.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#57229C
RGBrgb(87, 34, 156)
HSLhsl(266, 64%, 37%)
HSVhsv(266, 78%, 61%)
CMYKcmyk(44.2%, 78.2%, 0%, 38.8%)
CIE-LABlab(28.30, 48.97, -56.55)
CIE-LCHlch(28.30, 74.80, 310.89°)
OKLaboklab(40.41% 0.0828 -0.1619)
OKLCHoklch(40.41% 0.182 297.1)
XYZxyz(10.5017, 5.5704, 31.9679)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57229C #679C22
analogous
#222A9C #57229C #94229C
triadic
#57229C #9C5722 #229C57
tetradic
#57229C #9C222A #679C22 #229C94
square
#57229C #9C222A #679C22 #229C94
split-complementary
#57229C #9C9422 #2A9C22
monochromatic
#1F0C38 #3B176A #57229C #732DCE #945DDC

Accessibility & contrast

On white

9.93
#57229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#57229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57229C
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57229C#FFFFFF#000000##FFFFFF
##57229C1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#45435E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #57229c;
/* rgb */ color: rgb(87, 34, 156);
/* oklch */ color: oklch(40.4% 0.182 297.1);
Tailwind
colors: {
  custom: {
    50: '#8d63ba',
    500: '#57229c',
    950: '#000000',
  },
}
SCSS
$custom: #57229c;
$custom-light: #8d63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#57229c",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 266.066,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.18187,
    "h": 297.1
  },
  "luminance": 0.05571
}

Semantic roles & 50–950 ramp

primary
#57229C
secondary
#94C05A
accent
#E7419F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #57229C

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

Preview Lab → · Contrast checker → · Palette generator →

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