#57227E#57227E

#57227E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.149 H 306.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#57227E
RGBrgb(87, 34, 126)
HSLhsl(275, 58%, 31%)
HSVhsv(275, 73%, 49%)
CMYKcmyk(31%, 73%, 0%, 50.6%)
CIE-LABlab(25.79, 41.40, -42.01)
CIE-LCHlch(25.79, 58.98, 314.58°)
OKLaboklab(37.86% 0.0896 -0.1192)
OKLCHoklch(37.86% 0.149 306.9)
XYZxyz(8.2676, 4.6767, 20.2018)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57227E #497E22
analogous
#29227E #57227E #7E2277
triadic
#57227E #7E5722 #227E57
tetradic
#57227E #7E2922 #497E22 #22777E
square
#57227E #7E2922 #497E22 #22777E
split-complementary
#57227E #777E22 #227E29
monochromatic
#14081E #36154E #57227E #782FAE #974CCF

Accessibility & contrast

On white

10.85
#57227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#57227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57227E
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57227E#FFFFFF#000000##FFFFFF
##57227E1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#043D7C
Tritanopia (blue-blind)
#50374D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57227e;
/* rgb */ color: rgb(87, 34, 126);
/* oklch */ color: oklch(37.9% 0.149 306.9);
Tailwind
colors: {
  custom: {
    50: '#8a62a4',
    500: '#57227e',
    950: '#000000',
  },
}
SCSS
$custom: #57227e;
$custom-light: #8a62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#57227e",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 274.565,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37863,
    "c": 0.14914,
    "h": 306.9
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#57227E
secondary
#76B14B
accent
#E14788
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57227E

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

Preview Lab → · Contrast checker → · Palette generator →

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