#57127C#57127C

#57127C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.165 H 309.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#57127C
RGBrgb(87, 18, 124)
HSLhsl(279, 75%, 28%)
HSVhsv(279, 85%, 49%)
CMYKcmyk(29.8%, 85.5%, 0%, 51.4%)
CIE-LABlab(23.39, 47.37, -44.65)
CIE-LCHlch(23.39, 65.10, 316.69°)
OKLaboklab(36.12% 0.105 -0.1269)
OKLCHoklch(36.12% 0.165 309.6)
XYZxyz(7.7841, 3.9142, 19.4103)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57127C #377C12
analogous
#22127C #57127C #7C126C
triadic
#57127C #7C5712 #127C57
tetradic
#57127C #7C2212 #377C12 #126C7C
square
#57127C #7C2212 #377C12 #126C7C
split-complementary
#57127C #6C7C12 #127C22
monochromatic
#13041B #320A47 #57127C #7C1AB1 #A029E0

Accessibility & contrast

On white

11.78
#57127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#57127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57127C
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57127C#FFFFFF#000000##FFFFFF
##57127C1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#512F49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #57127c;
/* rgb */ color: rgb(87, 18, 124);
/* oklch */ color: oklch(36.1% 0.165 309.6);
Tailwind
colors: {
  custom: {
    50: '#8b5ba3',
    500: '#57127c',
    950: '#000000',
  },
}
SCSS
$custom: #57127c;
$custom-light: #8b5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#57127c",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 279.057,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36118,
    "c": 0.16465,
    "h": 309.6
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#57127C
secondary
#62B238
accent
#F13778
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57127C

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

Preview Lab → · Contrast checker → · Palette generator →

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