#5A118E#5A118E

#5A118E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.1% C 0.183 H 304.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5A118E
RGBrgb(90, 17, 142)
HSLhsl(275, 79%, 31%)
HSVhsv(275, 88%, 56%)
CMYKcmyk(36.6%, 88%, 0%, 44.3%)
CIE-LABlab(25.34, 52.18, -52.75)
CIE-LCHlch(25.34, 74.20, 314.69°)
OKLaboklab(38.06% 0.1043 -0.1505)
OKLCHoklch(38.06% 0.183 304.7)
XYZxyz(9.2983, 4.5276, 25.9700)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A118E #458E11
analogous
#1B118E #5A118E #8E1183
triadic
#5A118E #8E5A11 #118E5A
tetradic
#5A118E #8E1B11 #458E11 #11838E
square
#5A118E #8E1B11 #458E11 #11838E
split-complementary
#5A118E #838E11 #118E1B
monochromatic
#150421 #370A57 #5A118E #7D18C5 #9C33E7

Accessibility & contrast

On white

11.02
#5A118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5A118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A118E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A118E#FFFFFF#000000##FFFFFF
##5A118E1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#503653
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a118e;
/* rgb */ color: rgb(90, 17, 142);
/* oklch */ color: oklch(38.1% 0.183 304.7);
Tailwind
colors: {
  custom: {
    50: '#8f5cb0',
    500: '#5a118e',
    950: '#000000',
  },
}
SCSS
$custom: #5a118e;
$custom-light: #8f5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a118e",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 275.04,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38061,
    "c": 0.18312,
    "h": 304.7
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#5A118E
secondary
#72C238
accent
#F53384
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A118E

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

Preview Lab → · Contrast checker → · Palette generator →

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