#57118C#57118C

#57118C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.5% C 0.181 H 303.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#57118C
RGBrgb(87, 17, 140)
HSLhsl(274, 78%, 31%)
HSVhsv(274, 88%, 55%)
CMYKcmyk(37.9%, 87.9%, 0%, 45.1%)
CIE-LABlab(24.70, 51.29, -52.57)
CIE-LCHlch(24.70, 73.44, 314.29°)
OKLaboklab(37.47% 0.1004 -0.1501)
OKLCHoklch(37.47% 0.181 303.8)
XYZxyz(8.8634, 4.3206, 25.1729)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57118C #468C11
analogous
#19118C #57118C #8C1183
triadic
#57118C #8C5711 #118C57
tetradic
#57118C #8C1911 #468C11 #11838C
square
#57118C #8C1911 #468C11 #11838C
split-complementary
#57118C #838C11 #118C19
monochromatic
#13041F #350A55 #57118C #7918C3 #9831E6

Accessibility & contrast

On white

11.26
#57118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#57118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #57118C
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57118C#FFFFFF#000000##FFFFFF
##57118C1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#4C3652
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #57118c;
/* rgb */ color: rgb(87, 17, 140);
/* oklch */ color: oklch(37.5% 0.181 303.8);
Tailwind
colors: {
  custom: {
    50: '#8d5baf',
    500: '#57118c',
    950: '#000000',
  },
}
SCSS
$custom: #57118c;
$custom-light: #8d5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#57118c",
  "rgb": {
    "r": 87,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 274.146,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37469,
    "c": 0.18061,
    "h": 303.8
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#57118C
secondary
#73C138
accent
#F53387
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #57118C

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

Preview Lab → · Contrast checker → · Palette generator →

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