#57157F#57157F

#57157F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.165 H 308.1°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#57157F
RGBrgb(87, 21, 127)
HSLhsl(277, 72%, 29%)
HSVhsv(277, 83%, 50%)
CMYKcmyk(31.5%, 83.5%, 0%, 50.2%)
CIE-LABlab(23.98, 47.04, -45.58)
CIE-LCHlch(23.98, 65.51, 315.90°)
OKLaboklab(36.61% 0.1018 -0.1296)
OKLCHoklch(36.61% 0.165 308.1)
XYZxyz(8.0286, 4.0950, 20.4420)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57157F #3D7F15
analogous
#22157F #57157F #7F1572
triadic
#57157F #7F5715 #157F57
tetradic
#57157F #7F2215 #3D7F15 #15727F
square
#57157F #7F2215 #3D7F15 #15727F
split-complementary
#57157F #727F15 #157F22
monochromatic
#12041A #330C4A #57157F #7B1EB4 #9C31DD

Accessibility & contrast

On white

11.54
#57157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#57157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57157F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57157F#FFFFFF#000000##FFFFFF
##57157F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#50314B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #57157f;
/* rgb */ color: rgb(87, 21, 127);
/* oklch */ color: oklch(36.6% 0.165 308.1);
Tailwind
colors: {
  custom: {
    50: '#8b5ca5',
    500: '#57157f',
    950: '#000000',
  },
}
SCSS
$custom: #57157f;
$custom-light: #8b5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#57157f",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 277.358,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36613,
    "c": 0.16482,
    "h": 308.1
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#57157F
secondary
#69B43C
accent
#EE397E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57157F

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

Preview Lab → · Contrast checker → · Palette generator →

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