#57127B#57127B

#57127B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.164 H 310.0°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#57127B
RGBrgb(87, 18, 123)
HSLhsl(279, 74%, 28%)
HSVhsv(279, 85%, 48%)
CMYKcmyk(29.3%, 85.4%, 0%, 51.8%)
CIE-LABlab(23.30, 47.14, -44.16)
CIE-LCHlch(23.30, 64.59, 316.87°)
OKLaboklab(36.03% 0.1052 -0.1254)
OKLCHoklch(36.03% 0.164 310)
XYZxyz(7.7212, 3.8891, 19.0790)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57127B #367B12
analogous
#23127B #57127B #7B126A
triadic
#57127B #7B5712 #127B57
tetradic
#57127B #7B2312 #367B12 #126A7B
square
#57127B #7B2312 #367B12 #126A7B
split-complementary
#57127B #6A7B12 #127B23
monochromatic
#13041B #310A46 #57127B #7D1AB0 #A128E0

Accessibility & contrast

On white

11.81
#57127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #57127B
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57127B#FFFFFF#000000##FFFFFF
##57127B1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#522E48
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #57127b;
/* rgb */ color: rgb(87, 18, 123);
/* oklch */ color: oklch(36.0% 0.164 310.0);
Tailwind
colors: {
  custom: {
    50: '#8b5ba2',
    500: '#57127b',
    950: '#000000',
  },
}
SCSS
$custom: #57127b;
$custom-light: #8b5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#57127b",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 279.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36033,
    "c": 0.1637,
    "h": 310
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#57127B
secondary
#61B138
accent
#F13777
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #57127B

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

Preview Lab → · Contrast checker → · Palette generator →

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