#5A118C#5A118C

#5A118C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.181 H 305.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5A118C
RGBrgb(90, 17, 140)
HSLhsl(276, 78%, 31%)
HSVhsv(276, 88%, 55%)
CMYKcmyk(35.7%, 87.9%, 0%, 45.1%)
CIE-LABlab(25.16, 51.73, -51.80)
CIE-LCHlch(25.16, 73.21, 314.96°)
OKLaboklab(37.88% 0.105 -0.1477)
OKLCHoklch(37.88% 0.181 305.4)
XYZxyz(9.1494, 4.4681, 25.1863)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A118C #438C11
analogous
#1D118C #5A118C #8C1180
triadic
#5A118C #8C5A11 #118C5A
tetradic
#5A118C #8C1D11 #438C11 #11808C
square
#5A118C #8C1D11 #438C11 #11808C
split-complementary
#5A118C #808C11 #118C1D
monochromatic
#14041F #370A55 #5A118C #7D18C3 #9D31E6

Accessibility & contrast

On white

11.09
#5A118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A118C
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A118C#FFFFFF#000000##FFFFFF
##5A118C1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#503552
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a118c;
/* rgb */ color: rgb(90, 17, 140);
/* oklch */ color: oklch(37.9% 0.181 305.4);
Tailwind
colors: {
  custom: {
    50: '#8e5caf',
    500: '#5a118c',
    950: '#000000',
  },
}
SCSS
$custom: #5a118c;
$custom-light: #8e5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a118c",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 275.61,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3788,
    "c": 0.18124,
    "h": 305.4
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#5A118C
secondary
#70C138
accent
#F53382
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A118C

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

Preview Lab → · Contrast checker → · Palette generator →

#5A118C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva