#57227A#57227A

#57227A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.145 H 308.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#57227A
RGBrgb(87, 34, 122)
HSLhsl(276, 56%, 31%)
HSVhsv(276, 72%, 48%)
CMYKcmyk(28.7%, 72.1%, 0%, 52.2%)
CIE-LABlab(25.49, 40.42, -39.97)
CIE-LCHlch(25.49, 56.85, 315.32°)
OKLaboklab(37.55% 0.0902 -0.1132)
OKLCHoklch(37.55% 0.145 308.5)
XYZxyz(8.0146, 4.5756, 18.8695)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57227A #457A22
analogous
#2B227A #57227A #7A2271
triadic
#57227A #7A5722 #227A57
tetradic
#57227A #7A2B22 #457A22 #22717A
square
#57227A #7A2B22 #457A22 #22717A
split-complementary
#57227A #717A22 #227A2B
monochromatic
#13071A #35154A #57227A #792FAA #994ACD

Accessibility & contrast

On white

10.97
#57227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#57227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57227A
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57227A#FFFFFF#000000##FFFFFF
##57227A1.0010.971.9210.97
#FFFFFF10.971.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#0E3D78
Tritanopia (blue-blind)
#52354B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #57227a;
/* rgb */ color: rgb(87, 34, 122);
/* oklch */ color: oklch(37.6% 0.145 308.5);
Tailwind
colors: {
  custom: {
    50: '#8a62a1',
    500: '#57227a',
    950: '#000000',
  },
}
SCSS
$custom: #57227a;
$custom-light: #8a62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#57227a",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 276.136,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37551,
    "c": 0.14475,
    "h": 308.5
  },
  "luminance": 0.04575
}

Semantic roles & 50–950 ramp

primary
#57227A
secondary
#72AD4B
accent
#E04884
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57227A

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

Preview Lab → · Contrast checker → · Palette generator →

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