#5A188C#5A188C

#5A188C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.176 H 304.8°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5A188C
RGBrgb(90, 24, 140)
HSLhsl(274, 71%, 32%)
HSVhsv(274, 83%, 55%)
CMYKcmyk(35.7%, 82.9%, 0%, 45.1%)
CIE-LABlab(25.92, 49.50, -50.56)
CIE-LCHlch(25.92, 70.75, 314.39°)
OKLaboklab(38.41% 0.1002 -0.1441)
OKLCHoklch(38.41% 0.176 304.8)
XYZxyz(9.2756, 4.7204, 25.2283)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A188C #4A8C18
analogous
#20188C #5A188C #8C1884
triadic
#5A188C #8C5A18 #188C5A
tetradic
#5A188C #8C2018 #4A8C18 #18848C
square
#5A188C #8C2018 #4A8C18 #18848C
split-complementary
#5A188C #848C18 #188C20
monochromatic
#170624 #380F58 #5A188C #7C21C0 #9A40DE

Accessibility & contrast

On white

10.80
#5A188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5A188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A188C
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A188C#FFFFFF#000000##FFFFFF
##5A188C1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#503853
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a188c;
/* rgb */ color: rgb(90, 24, 140);
/* oklch */ color: oklch(38.4% 0.176 304.8);
Tailwind
colors: {
  custom: {
    50: '#8e5eae',
    500: '#5a188c',
    950: '#000000',
  },
}
SCSS
$custom: #5a188c;
$custom-light: #8e5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a188c",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 274.138,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38406,
    "c": 0.17553,
    "h": 304.8
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#5A188C
secondary
#77BF41
accent
#ED3A88
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A188C

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

Preview Lab → · Contrast checker → · Palette generator →

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