#57128F#57128F

#57128F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.8% C 0.183 H 302.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#57128F
RGBrgb(87, 18, 143)
HSLhsl(273, 78%, 32%)
HSVhsv(273, 87%, 56%)
CMYKcmyk(39.2%, 87.4%, 0%, 43.9%)
CIE-LABlab(25.08, 51.69, -53.82)
CIE-LCHlch(25.08, 74.62, 313.84°)
OKLaboklab(37.81% 0.0987 -0.1538)
OKLCHoklch(37.81% 0.183 302.7)
XYZxyz(9.1035, 4.4420, 26.3591)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57128F #4A8F12
analogous
#19128F #57128F #8F1289
triadic
#57128F #8F5712 #128F57
tetradic
#57128F #8F1912 #4A8F12 #12898F
square
#57128F #8F1912 #4A8F12 #12898F
split-complementary
#57128F #898F12 #128F19
monochromatic
#150422 #360B59 #57128F #7819C5 #9736E6

Accessibility & contrast

On white

11.12
#57128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#57128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57128F
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57128F#FFFFFF#000000##FFFFFF
##57128F1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#4B3754
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #57128f;
/* rgb */ color: rgb(87, 18, 143);
/* oklch */ color: oklch(37.8% 0.183 302.7);
Tailwind
colors: {
  custom: {
    50: '#8d5cb1',
    500: '#57128f',
    950: '#000000',
  },
}
SCSS
$custom: #57128f;
$custom-light: #8d5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#57128f",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 273.12,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37814,
    "c": 0.18275,
    "h": 302.7
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#57128F
secondary
#77C33A
accent
#F4348A
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #57128F

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

Preview Lab → · Contrast checker → · Palette generator →

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