#57126A#57126A

#57126A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.148 H 317.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#57126A
RGBrgb(87, 18, 106)
HSLhsl(287, 71%, 24%)
HSVhsv(287, 83%, 42%)
CMYKcmyk(17.9%, 83%, 0%, 58.4%)
CIE-LABlab(21.94, 43.49, -35.41)
CIE-LCHlch(21.94, 56.08, 320.84°)
OKLaboklab(34.66% 0.1091 -0.0997)
OKLCHoklch(34.66% 0.148 317.6)
XYZxyz(6.7479, 3.4998, 13.9530)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57126A #256A12
analogous
#2B126A #57126A #6A1251
triadic
#57126A #6A5712 #126A57
tetradic
#57126A #6A2B12 #256A12 #12516A
square
#57126A #6A2B12 #256A12 #12516A
split-complementary
#57126A #516A12 #126A2B
monochromatic
#15041A #2C0936 #57126A #821B9E #AD24D3

Accessibility & contrast

On white

12.35
#57126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#57126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57126A
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57126A#FFFFFF#000000##FFFFFF
##57126A1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#153768
Tritanopia (blue-blind)
#56263E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #57126a;
/* rgb */ color: rgb(87, 18, 106);
/* oklch */ color: oklch(34.7% 0.148 317.6);
Tailwind
colors: {
  custom: {
    50: '#8a5a95',
    500: '#57126a',
    950: '#000000',
  },
}
SCSS
$custom: #57126a;
$custom-light: #8a5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#57126a",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 287.045,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.14781,
    "h": 317.6
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#57126A
secondary
#4DA236
accent
#EE3A61
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #57126A

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

Preview Lab → · Contrast checker → · Palette generator →

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