#57229E#57229E

#57229E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.184 H 296.5°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#57229E
RGBrgb(87, 34, 158)
HSLhsl(266, 65%, 38%)
HSVhsv(266, 78%, 62%)
CMYKcmyk(44.9%, 78.5%, 0%, 38%)
CIE-LABlab(28.48, 49.49, -57.47)
CIE-LCHlch(28.48, 75.84, 310.73°)
OKLaboklab(40.59% 0.0822 -0.1646)
OKLCHoklch(40.59% 0.184 296.5)
XYZxyz(10.6724, 5.6387, 32.8672)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57229E #699E22
analogous
#222B9E #57229E #95229E
triadic
#57229E #9E5722 #229E57
tetradic
#57229E #9E222B #699E22 #229E95
square
#57229E #9E222B #699E22 #229E95
split-complementary
#57229E #9E9522 #2B9E22
monochromatic
#200C39 #3B176C #57229E #732DD0 #945EDC

Accessibility & contrast

On white

9.87
#57229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#57229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57229E
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57229E#FFFFFF#000000##FFFFFF
##57229E1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#44445F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #57229e;
/* rgb */ color: rgb(87, 34, 158);
/* oklch */ color: oklch(40.6% 0.184 296.5);
Tailwind
colors: {
  custom: {
    50: '#8e64bc',
    500: '#57229e',
    950: '#000000',
  },
}
SCSS
$custom: #57229e;
$custom-light: #8e64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#57229e",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 265.645,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40594,
    "c": 0.18403,
    "h": 296.5
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#57229E
secondary
#95C15B
accent
#E840A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #57229E

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

Preview Lab → · Contrast checker → · Palette generator →

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