#57227F#57227F

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

Color values

HEX#57227F
RGBrgb(87, 34, 127)
HSLhsl(274, 58%, 32%)
HSVhsv(274, 73%, 50%)
CMYKcmyk(31.5%, 73.2%, 0%, 50.2%)
CIE-LABlab(25.87, 41.64, -42.52)
CIE-LCHlch(25.87, 59.51, 314.40°)
OKLaboklab(37.94% 0.0895 -0.1207)
OKLCHoklch(37.94% 0.15 306.5)
XYZxyz(8.3324, 4.7027, 20.5433)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57227F #4A7F22
analogous
#29227F #57227F #7F2279
triadic
#57227F #7F5722 #227F57
tetradic
#57227F #7F2922 #4A7F22 #22797F
square
#57227F #7F2922 #4A7F22 #22797F
split-complementary
#57227F #797F22 #227F29
monochromatic
#15081E #36154F #57227F #782FAF #974CCF

Accessibility & contrast

On white

10.82
#57227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57227F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57227F#FFFFFF#000000##FFFFFF
##57227F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#013E7D
Tritanopia (blue-blind)
#50374E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57227f;
/* rgb */ color: rgb(87, 34, 127);
/* oklch */ color: oklch(37.9% 0.150 306.5);
Tailwind
colors: {
  custom: {
    50: '#8a62a5',
    500: '#57227f',
    950: '#000000',
  },
}
SCSS
$custom: #57227f;
$custom-light: #8a62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#57227f",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 274.194,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37943,
    "c": 0.15024,
    "h": 306.5
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#57227F
secondary
#77B24B
accent
#E14789
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57227F

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

Preview Lab → · Contrast checker → · Palette generator →

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