#57126F#57126F

#57126F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.152 H 315.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#57126F
RGBrgb(87, 18, 111)
HSLhsl(285, 72%, 25%)
HSVhsv(285, 84%, 44%)
CMYKcmyk(21.6%, 83.8%, 0%, 56.5%)
CIE-LABlab(22.33, 44.54, -38.04)
CIE-LCHlch(22.33, 58.57, 319.50°)
OKLaboklab(35.05% 0.1082 -0.1074)
OKLCHoklch(35.05% 0.152 315.2)
XYZxyz(7.0156, 3.6068, 15.3625)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57126F #2A6F12
analogous
#28126F #57126F #6F1258
triadic
#57126F #6F5712 #126F57
tetradic
#57126F #6F2812 #2A6F12 #12586F
square
#57126F #6F2812 #2A6F12 #12586F
split-complementary
#57126F #586F12 #126F28
monochromatic
#15041A #2E093A #57126F #801BA4 #AA23D8

Accessibility & contrast

On white

12.20
#57126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#57126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57126F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57126F#FFFFFF#000000##FFFFFF
##57126F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#0D376D
Tritanopia (blue-blind)
#552841
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #57126f;
/* rgb */ color: rgb(87, 18, 111);
/* oklch */ color: oklch(35.0% 0.152 315.2);
Tailwind
colors: {
  custom: {
    50: '#8a5a99',
    500: '#57126f',
    950: '#000000',
  },
}
SCSS
$custom: #57126f;
$custom-light: #8a5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#57126f",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 284.516,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35046,
    "c": 0.15245,
    "h": 315.2
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#57126F
secondary
#53A637
accent
#EF3968
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #57126F

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

Preview Lab → · Contrast checker → · Palette generator →

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