#57177F#57177F

#57177F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.163 H 307.9°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#57177F
RGBrgb(87, 23, 127)
HSLhsl(277, 69%, 29%)
HSVhsv(277, 82%, 50%)
CMYKcmyk(31.5%, 81.9%, 0%, 50.2%)
CIE-LABlab(24.23, 46.32, -45.18)
CIE-LCHlch(24.23, 64.71, 315.71°)
OKLaboklab(36.79% 0.1002 -0.1285)
OKLCHoklch(36.79% 0.163 307.9)
XYZxyz(8.0668, 4.1715, 20.4548)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57177F #3F7F17
analogous
#23177F #57177F #7F1773
triadic
#57177F #7F5717 #177F57
tetradic
#57177F #7F2317 #3F7F17 #17737F
square
#57177F #7F2317 #3F7F17 #17737F
split-complementary
#57177F #737F17 #177F23
monochromatic
#12051A #340E4B #57177F #7A20B3 #9B36DB

Accessibility & contrast

On white

11.45
#57177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#57177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57177F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57177F#FFFFFF#000000##FFFFFF
##57177F1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#50324B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #57177f;
/* rgb */ color: rgb(87, 23, 127);
/* oklch */ color: oklch(36.8% 0.163 307.9);
Tailwind
colors: {
  custom: {
    50: '#8b5da5',
    500: '#57177f',
    950: '#000000',
  },
}
SCSS
$custom: #57177f;
$custom-light: #8b5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#57177f",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 276.923,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36786,
    "c": 0.1629,
    "h": 307.9
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#57177F
secondary
#6BB43E
accent
#EC3C80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #57177F

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

Preview Lab → · Contrast checker → · Palette generator →

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