#57229F#57229F

#57229F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.185 H 296.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#57229F
RGBrgb(87, 34, 159)
HSLhsl(265, 65%, 38%)
HSVhsv(265, 79%, 62%)
CMYKcmyk(45.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(28.57, 49.74, -57.93)
CIE-LCHlch(28.57, 76.36, 310.65°)
OKLaboklab(40.69% 0.082 -0.166)
OKLCHoklch(40.69% 0.185 296.3)
XYZxyz(10.7588, 5.6732, 33.3224)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57229F #6A9F22
analogous
#222B9F #57229F #95229F
triadic
#57229F #9F5722 #229F57
tetradic
#57229F #9F222B #6A9F22 #229F95
square
#57229F #9F222B #6A9F22 #229F95
split-complementary
#57229F #9F9522 #2B9F22
monochromatic
#200C3A #3B176D #57229F #732DD1 #945FDD

Accessibility & contrast

On white

9.84
#57229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57229F
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57229F#FFFFFF#000000##FFFFFF
##57229F1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#434460
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #57229f;
/* rgb */ color: rgb(87, 34, 159);
/* oklch */ color: oklch(40.7% 0.185 296.3);
Tailwind
colors: {
  custom: {
    50: '#8e64bc',
    500: '#57229f',
    950: '#000000',
  },
}
SCSS
$custom: #57229f;
$custom-light: #8e64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#57229f",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 265.44,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40686,
    "c": 0.18511,
    "h": 296.3
  },
  "luminance": 0.05673
}

Semantic roles & 50–950 ramp

primary
#57229F
secondary
#96C15B
accent
#E840A1
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #57229F

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

Preview Lab → · Contrast checker → · Palette generator →

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