#5A188F#5A188F

#5A188F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.178 H 303.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#5A188F
RGBrgb(90, 24, 143)
HSLhsl(273, 71%, 33%)
HSVhsv(273, 83%, 56%)
CMYKcmyk(37.1%, 83.2%, 0%, 43.9%)
CIE-LABlab(26.19, 50.20, -51.99)
CIE-LCHlch(26.19, 72.27, 314.00°)
OKLaboklab(38.67% 0.0992 -0.1484)
OKLCHoklch(38.67% 0.178 303.8)
XYZxyz(9.4998, 4.8101, 26.4092)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A188F #4D8F18
analogous
#1E188F #5A188F #8F1888
triadic
#5A188F #8F5A18 #188F5A
tetradic
#5A188F #8F1E18 #4D8F18 #18888F
square
#5A188F #8F1E18 #4D8F18 #18888F
split-complementary
#5A188F #888F18 #188F1E
monochromatic
#180626 #390F5B #5A188F #7B21C3 #9942DF

Accessibility & contrast

On white

10.70
#5A188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A188F
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A188F#FFFFFF#000000##FFFFFF
##5A188F1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#4F3955
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a188f;
/* rgb */ color: rgb(90, 24, 143);
/* oklch */ color: oklch(38.7% 0.178 303.8);
Tailwind
colors: {
  custom: {
    50: '#8e5fb1',
    500: '#5a188f',
    950: '#000000',
  },
}
SCSS
$custom: #5a188f;
$custom-light: #8e5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a188f",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 273.277,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38671,
    "c": 0.17849,
    "h": 303.8
  },
  "luminance": 0.0481
}

Semantic roles & 50–950 ramp

primary
#5A188F
secondary
#7BC043
accent
#EE3A8A
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A188F

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

Preview Lab → · Contrast checker → · Palette generator →

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