#57157C#57157C

#57157C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.162 H 309.3°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#57157C
RGBrgb(87, 21, 124)
HSLhsl(278, 71%, 28%)
HSVhsv(278, 83%, 49%)
CMYKcmyk(29.8%, 83.1%, 0%, 51.4%)
CIE-LABlab(23.73, 46.36, -44.09)
CIE-LCHlch(23.73, 63.98, 316.44°)
OKLaboklab(36.36% 0.1026 -0.1252)
OKLCHoklch(36.36% 0.162 309.3)
XYZxyz(7.8360, 4.0180, 19.4276)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57157C #3A7C15
analogous
#24157C #57157C #7C156D
triadic
#57157C #7C5715 #157C57
tetradic
#57157C #7C2415 #3A7C15 #156D7C
square
#57157C #7C2415 #3A7C15 #156D7C
split-complementary
#57157C #6D7C15 #157C24
monochromatic
#12041A #320C48 #57157C #7C1EB0 #9E30DC

Accessibility & contrast

On white

11.64
#57157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#57157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57157C
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57157C#FFFFFF#000000##FFFFFF
##57157C1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#513049
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #57157c;
/* rgb */ color: rgb(87, 21, 124);
/* oklch */ color: oklch(36.4% 0.162 309.3);
Tailwind
colors: {
  custom: {
    50: '#8b5ca3',
    500: '#57157c',
    950: '#000000',
  },
}
SCSS
$custom: #57157c;
$custom-light: #8b5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#57157c",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 278.447,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36358,
    "c": 0.16191,
    "h": 309.3
  },
  "luminance": 0.04018
}

Semantic roles & 50–950 ramp

primary
#57157C
secondary
#66B13C
accent
#EE3A7B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57157C

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

Preview Lab → · Contrast checker → · Palette generator →

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