#57127E#57127E

#57127E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.167 H 308.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#57127E
RGBrgb(87, 18, 126)
HSLhsl(278, 75%, 28%)
HSVhsv(278, 86%, 49%)
CMYKcmyk(31%, 85.7%, 0%, 50.6%)
CIE-LABlab(23.56, 47.81, -45.65)
CIE-LCHlch(23.56, 66.10, 316.33°)
OKLaboklab(36.29% 0.1044 -0.1298)
OKLCHoklch(36.29% 0.167 308.8)
XYZxyz(7.9119, 3.9654, 20.0832)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57127E #397E12
analogous
#21127E #57127E #7E126F
triadic
#57127E #7E5712 #127E57
tetradic
#57127E #7E2112 #397E12 #126F7E
square
#57127E #7E2112 #397E12 #126F7E
split-complementary
#57127E #6F7E12 #127E21
monochromatic
#12041B #320A48 #57127E #7C1AB4 #9F2AE1

Accessibility & contrast

On white

11.71
#57127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57127E
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57127E#FFFFFF#000000##FFFFFF
##57127E1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#512F4A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #57127e;
/* rgb */ color: rgb(87, 18, 126);
/* oklch */ color: oklch(36.3% 0.167 308.8);
Tailwind
colors: {
  custom: {
    50: '#8b5ba4',
    500: '#57127e',
    950: '#000000',
  },
}
SCSS
$custom: #57127e;
$custom-light: #8b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#57127e",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 278.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3629,
    "c": 0.16654,
    "h": 308.8
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#57127E
secondary
#65B438
accent
#F2367A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57127E

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

Preview Lab → · Contrast checker → · Palette generator →

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