#57229B#57229B

#57229B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.181 H 297.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#57229B
RGBrgb(87, 34, 155)
HSLhsl(266, 64%, 37%)
HSVhsv(266, 78%, 61%)
CMYKcmyk(43.9%, 78.1%, 0%, 39.2%)
CIE-LABlab(28.21, 48.71, -56.08)
CIE-LCHlch(28.21, 74.28, 310.98°)
OKLaboklab(40.32% 0.0831 -0.1605)
OKLCHoklch(40.32% 0.181 297.4)
XYZxyz(10.4174, 5.5366, 31.5238)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57229B #669B22
analogous
#222A9B #57229B #94229B
triadic
#57229B #9B5722 #229B57
tetradic
#57229B #9B222A #669B22 #229B94
square
#57229B #9B222A #669B22 #229B94
split-complementary
#57229B #9B9422 #2A9B22
monochromatic
#1F0C37 #3B1769 #57229B #732DCD #945CDB

Accessibility & contrast

On white

9.96
#57229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57229B
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57229B#FFFFFF#000000##FFFFFF
##57229B1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #57229b;
/* rgb */ color: rgb(87, 34, 155);
/* oklch */ color: oklch(40.3% 0.181 297.4);
Tailwind
colors: {
  custom: {
    50: '#8d63b9',
    500: '#57229b',
    950: '#000000',
  },
}
SCSS
$custom: #57229b;
$custom-light: #8d63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#57229b",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 266.281,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40323,
    "c": 0.18078,
    "h": 297.4
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#57229B
secondary
#93C059
accent
#E7419E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #57229B

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

Preview Lab → · Contrast checker → · Palette generator →

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