#5A189E#5A189E

#5A189E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.193 H 299.2°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5A189E
RGBrgb(90, 24, 158)
HSLhsl(270, 74%, 36%)
HSVhsv(270, 85%, 62%)
CMYKcmyk(43%, 84.8%, 0%, 38%)
CIE-LABlab(27.56, 53.77, -58.97)
CIE-LCHlch(27.56, 79.80, 312.36°)
OKLaboklab(40.04% 0.0942 -0.1688)
OKLCHoklch(40.04% 0.193 299.2)
XYZxyz(10.7131, 5.2954, 32.7988)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A189E #5C9E18
analogous
#18199E #5A189E #9D189E
triadic
#5A189E #9E5A18 #189E5A
tetradic
#5A189E #9E1819 #5C9E18 #189E9D
square
#5A189E #9E1819 #5C9E18 #189E9D
split-complementary
#5A189E #9E9D18 #199E18
monochromatic
#1D0834 #3C1069 #5A189E #7820D3 #974DE4

Accessibility & contrast

On white

10.20
#5A189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5A189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A189E
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A189E#FFFFFF#000000##FFFFFF
##5A189E1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#49405E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a189e;
/* rgb */ color: rgb(90, 24, 158);
/* oklch */ color: oklch(40.0% 0.193 299.2);
Tailwind
colors: {
  custom: {
    50: '#9060bc',
    500: '#5a189e',
    950: '#000000',
  },
}
SCSS
$custom: #5a189e;
$custom-light: #9060bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a189e",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 269.552,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40042,
    "c": 0.19332,
    "h": 299.2
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#5A189E
secondary
#8AC64C
accent
#F03895
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5A189E

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

Preview Lab → · Contrast checker → · Palette generator →

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