#5A188E#5A188E

#5A188E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.177 H 304.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5A188E
RGBrgb(90, 24, 142)
HSLhsl(274, 71%, 33%)
HSVhsv(274, 83%, 56%)
CMYKcmyk(36.6%, 83.1%, 0%, 44.3%)
CIE-LABlab(26.10, 49.97, -51.52)
CIE-LCHlch(26.10, 71.77, 314.13°)
OKLaboklab(38.58% 0.0996 -0.147)
OKLCHoklch(38.58% 0.178 304.1)
XYZxyz(9.4244, 4.7799, 26.0121)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A188E #4C8E18
analogous
#1F188E #5A188E #8E1887
triadic
#5A188E #8E5A18 #188E5A
tetradic
#5A188E #8E1F18 #4C8E18 #18878E
square
#5A188E #8E1F18 #4C8E18 #18878E
split-complementary
#5A188E #878E18 #188E1F
monochromatic
#180625 #390F5A #5A188E #7B21C2 #9A41DF

Accessibility & contrast

On white

10.74
#5A188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5A188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A188E
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A188E#FFFFFF#000000##FFFFFF
##5A188E1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#503954
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a188e;
/* rgb */ color: rgb(90, 24, 142);
/* oklch */ color: oklch(38.6% 0.177 304.1);
Tailwind
colors: {
  custom: {
    50: '#8e5eb0',
    500: '#5a188e',
    950: '#000000',
  },
}
SCSS
$custom: #5a188e;
$custom-light: #8e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a188e",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 273.559,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38583,
    "c": 0.1775,
    "h": 304.1
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

primary
#5A188E
secondary
#79C042
accent
#EE3A89
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A188E

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

Preview Lab → · Contrast checker → · Palette generator →

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