#57227C#57227C

#57227C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.147 H 307.7°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#57227C
RGBrgb(87, 34, 124)
HSLhsl(275, 57%, 31%)
HSVhsv(275, 73%, 49%)
CMYKcmyk(29.8%, 72.6%, 0%, 51.4%)
CIE-LABlab(25.64, 40.91, -41.00)
CIE-LCHlch(25.64, 57.91, 314.94°)
OKLaboklab(37.71% 0.0899 -0.1162)
OKLCHoklch(37.71% 0.147 307.7)
XYZxyz(8.1398, 4.6256, 19.5289)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57227C #477C22
analogous
#2A227C #57227C #7C2274
triadic
#57227C #7C5722 #227C57
tetradic
#57227C #7C2A22 #477C22 #22747C
square
#57227C #7C2A22 #477C22 #22747C
split-complementary
#57227C #747C22 #227C2A
monochromatic
#14081C #35154C #57227C #792FAC #984BCE

Accessibility & contrast

On white

10.91
#57227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#57227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57227C
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57227C#FFFFFF#000000##FFFFFF
##57227C1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#093D7A
Tritanopia (blue-blind)
#51364C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57227c;
/* rgb */ color: rgb(87, 34, 124);
/* oklch */ color: oklch(37.7% 0.147 307.7);
Tailwind
colors: {
  custom: {
    50: '#8a62a3',
    500: '#57227c',
    950: '#000000',
  },
}
SCSS
$custom: #57227c;
$custom-light: #8a62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#57227c",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 275.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37706,
    "c": 0.14695,
    "h": 307.7
  },
  "luminance": 0.04626
}

Semantic roles & 50–950 ramp

primary
#57227C
secondary
#74AF4B
accent
#E04886
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57227C

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

Preview Lab → · Contrast checker → · Palette generator →

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