#5A188A#5A188A

#5A188A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.174 H 305.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5A188A
RGBrgb(90, 24, 138)
HSLhsl(275, 70%, 32%)
HSVhsv(275, 83%, 54%)
CMYKcmyk(34.8%, 82.6%, 0%, 45.9%)
CIE-LABlab(25.75, 49.03, -49.60)
CIE-LCHlch(25.75, 69.74, 314.67°)
OKLaboklab(38.23% 0.1008 -0.1413)
OKLCHoklch(38.23% 0.174 305.5)
XYZxyz(9.1295, 4.6620, 24.4587)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A188A #488A18
analogous
#21188A #5A188A #8A1881
triadic
#5A188A #8A5A18 #188A5A
tetradic
#5A188A #8A2118 #488A18 #18818A
square
#5A188A #8A2118 #488A18 #18818A
split-complementary
#5A188A #818A18 #188A21
monochromatic
#160622 #380F56 #5A188A #7C21BE #9B3FDE

Accessibility & contrast

On white

10.87
#5A188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5A188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A188A
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A188A#FFFFFF#000000##FFFFFF
##5A188A1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#513752
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a188a;
/* rgb */ color: rgb(90, 24, 138);
/* oklch */ color: oklch(38.2% 0.174 305.5);
Tailwind
colors: {
  custom: {
    50: '#8e5ead',
    500: '#5a188a',
    950: '#000000',
  },
}
SCSS
$custom: #5a188a;
$custom-light: #8e5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5a188a",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 274.737,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38232,
    "c": 0.17356,
    "h": 305.5
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#5A188A
secondary
#75BD40
accent
#ED3B86
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A188A

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

Preview Lab → · Contrast checker → · Palette generator →

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