#5A188D#5A188D

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

Color values

HEX#5A188D
RGBrgb(90, 24, 141)
HSLhsl(274, 71%, 32%)
HSVhsv(274, 83%, 55%)
CMYKcmyk(36.2%, 83%, 0%, 44.7%)
CIE-LABlab(26.01, 49.73, -51.04)
CIE-LCHlch(26.01, 71.26, 314.26°)
OKLaboklab(38.49% 0.0999 -0.1456)
OKLCHoklch(38.49% 0.177 304.5)
XYZxyz(9.3497, 4.7501, 25.6184)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A188D #4B8D18
analogous
#1F188D #5A188D #8D1886
triadic
#5A188D #8D5A18 #188D5A
tetradic
#5A188D #8D1F18 #4B8D18 #18868D
square
#5A188D #8D1F18 #4B8D18 #18868D
split-complementary
#5A188D #868D18 #188D1F
monochromatic
#170624 #390F59 #5A188D #7B21C1 #9A41DF

Accessibility & contrast

On white

10.77
#5A188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A188D
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A188D#FFFFFF#000000##FFFFFF
##5A188D1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#503854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a188d;
/* rgb */ color: rgb(90, 24, 141);
/* oklch */ color: oklch(38.5% 0.177 304.5);
Tailwind
colors: {
  custom: {
    50: '#8e5eaf',
    500: '#5a188d',
    950: '#000000',
  },
}
SCSS
$custom: #5a188d;
$custom-light: #8e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a188d",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 273.846,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38494,
    "c": 0.17652,
    "h": 304.5
  },
  "luminance": 0.0475
}

Semantic roles & 50–950 ramp

primary
#5A188D
secondary
#78BF42
accent
#EE3A88
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A188D

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

Preview Lab → · Contrast checker → · Palette generator →

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