#57127D#57127D

#57127D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.166 H 309.2°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#57127D
RGBrgb(87, 18, 125)
HSLhsl(279, 75%, 28%)
HSVhsv(279, 86%, 49%)
CMYKcmyk(30.4%, 85.6%, 0%, 51%)
CIE-LABlab(23.47, 47.59, -45.15)
CIE-LCHlch(23.47, 65.60, 316.51°)
OKLaboklab(36.2% 0.1047 -0.1283)
OKLCHoklch(36.2% 0.166 309.2)
XYZxyz(7.8477, 3.9397, 19.7451)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57127D #387D12
analogous
#22127D #57127D #7D126D
triadic
#57127D #7D5712 #127D57
tetradic
#57127D #7D2212 #387D12 #126D7D
square
#57127D #7D2212 #387D12 #126D7D
split-complementary
#57127D #6D7D12 #127D22
monochromatic
#13041B #320A48 #57127D #7C1AB2 #9F29E0

Accessibility & contrast

On white

11.74
#57127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#57127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57127D
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57127D#FFFFFF#000000##FFFFFF
##57127D1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#512F49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #57127d;
/* rgb */ color: rgb(87, 18, 125);
/* oklch */ color: oklch(36.2% 0.166 309.2);
Tailwind
colors: {
  custom: {
    50: '#8b5ba3',
    500: '#57127d',
    950: '#000000',
  },
}
SCSS
$custom: #57127d;
$custom-light: #8b5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#57127d",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 278.692,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36203,
    "c": 0.1656,
    "h": 309.2
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#57127D
secondary
#64B338
accent
#F13679
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57127D

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

Preview Lab → · Contrast checker → · Palette generator →

#57127D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva