#57227B#57227B

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

Color values

HEX#57227B
RGBrgb(87, 34, 123)
HSLhsl(276, 57%, 31%)
HSVhsv(276, 72%, 48%)
CMYKcmyk(29.3%, 72.4%, 0%, 51.8%)
CIE-LABlab(25.56, 40.66, -40.48)
CIE-LCHlch(25.56, 57.38, 315.13°)
OKLaboklab(37.63% 0.0901 -0.1147)
OKLCHoklch(37.63% 0.146 308.1)
XYZxyz(8.0769, 4.6005, 19.1975)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57227B #467B22
analogous
#2A227B #57227B #7B2272
triadic
#57227B #7B5722 #227B57
tetradic
#57227B #7B2A22 #467B22 #22727B
square
#57227B #7B2A22 #467B22 #22727B
split-complementary
#57227B #727B22 #227B2A
monochromatic
#13071B #35154B #57227B #792FAB #984ACD

Accessibility & contrast

On white

10.94
#57227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57227B
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57227B#FFFFFF#000000##FFFFFF
##57227B1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#0C3D79
Tritanopia (blue-blind)
#51364C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #57227b;
/* rgb */ color: rgb(87, 34, 123);
/* oklch */ color: oklch(37.6% 0.146 308.1);
Tailwind
colors: {
  custom: {
    50: '#8a62a2',
    500: '#57227b',
    950: '#000000',
  },
}
SCSS
$custom: #57227b;
$custom-light: #8a62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#57227b",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 275.73,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37628,
    "c": 0.14585,
    "h": 308.1
  },
  "luminance": 0.046
}

Semantic roles & 50–950 ramp

primary
#57227B
secondary
#73AE4B
accent
#E04885
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #57227B

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

Preview Lab → · Contrast checker → · Palette generator →

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