#57127F#57127F

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

Color values

HEX#57127F
RGBrgb(87, 18, 127)
HSLhsl(278, 75%, 28%)
HSVhsv(278, 86%, 50%)
CMYKcmyk(31.5%, 85.8%, 0%, 50.2%)
CIE-LABlab(23.64, 48.04, -46.14)
CIE-LCHlch(23.64, 66.61, 316.15°)
OKLaboklab(36.38% 0.1041 -0.1312)
OKLCHoklch(36.38% 0.167 308.4)
XYZxyz(7.9767, 3.9913, 20.4247)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57127F #3A7F12
analogous
#21127F #57127F #7F1270
triadic
#57127F #7F5712 #127F57
tetradic
#57127F #7F2112 #3A7F12 #12707F
square
#57127F #7F2112 #3A7F12 #12707F
split-complementary
#57127F #707F12 #127F21
monochromatic
#12041B #320A49 #57127F #7C1AB5 #9E2BE1

Accessibility & contrast

On white

11.68
#57127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#57127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57127F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57127F#FFFFFF#000000##FFFFFF
##57127F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#51304A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #57127f;
/* rgb */ color: rgb(87, 18, 127);
/* oklch */ color: oklch(36.4% 0.167 308.4);
Tailwind
colors: {
  custom: {
    50: '#8b5ba5',
    500: '#57127f',
    950: '#000000',
  },
}
SCSS
$custom: #57127f;
$custom-light: #8b5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#57127f",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 277.982,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36376,
    "c": 0.16749,
    "h": 308.4
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#57127F
secondary
#66B538
accent
#F2367B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57127F

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

Preview Lab → · Contrast checker → · Palette generator →

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