#5A187A#5A187A

#5A187A is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.158 H 311.6°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5A187A
RGBrgb(90, 24, 122)
HSLhsl(280, 67%, 29%)
HSVhsv(280, 80%, 48%)
CMYKcmyk(26.2%, 80.3%, 0%, 52.2%)
CIE-LABlab(24.43, 45.38, -41.67)
CIE-LCHlch(24.43, 61.61, 317.44°)
OKLaboklab(36.89% 0.1048 -0.118)
OKLCHoklch(36.89% 0.158 311.6)
XYZxyz(8.0553, 4.2323, 18.8012)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A187A #387A18
analogous
#29187A #5A187A #7A1869
triadic
#5A187A #7A5A18 #187A5A
tetradic
#5A187A #7A2918 #387A18 #18697A
square
#5A187A #7A2918 #387A18 #18697A
split-complementary
#5A187A #697A18 #187A29
monochromatic
#13051A #340E47 #5A187A #8022AD #A235D7

Accessibility & contrast

On white

11.37
#5A187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5A187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A187A
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A187A#FFFFFF#000000##FFFFFF
##5A187A1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#033B78
Tritanopia (blue-blind)
#563049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a187a;
/* rgb */ color: rgb(90, 24, 122);
/* oklch */ color: oklch(36.9% 0.158 311.6);
Tailwind
colors: {
  custom: {
    50: '#8d5da1',
    500: '#5a187a',
    950: '#000000',
  },
}
SCSS
$custom: #5a187a;
$custom-light: #8d5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a187a",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 280.408,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36892,
    "c": 0.15785,
    "h": 311.6
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#5A187A
secondary
#64AF3F
accent
#EA3E76
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A187A

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

Preview Lab → · Contrast checker → · Palette generator →

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