#5A1874#5A1874

#5A1874 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.152 H 314.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#5A1874
RGBrgb(90, 24, 116)
HSLhsl(283, 66%, 27%)
HSVhsv(283, 79%, 45%)
CMYKcmyk(22.4%, 79.3%, 0%, 54.5%)
CIE-LABlab(23.96, 44.06, -38.59)
CIE-LCHlch(23.96, 58.57, 318.78°)
OKLaboklab(36.42% 0.106 -0.109)
OKLCHoklch(36.42% 0.152 314.2)
XYZxyz(7.6949, 4.0881, 16.9034)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1874 #327418
analogous
#2C1874 #5A1874 #741860
triadic
#5A1874 #745A18 #18745A
tetradic
#5A1874 #742C18 #327418 #186074
square
#5A1874 #742C18 #327418 #186074
split-complementary
#5A1874 #607418 #18742C
monochromatic
#140519 #330E41 #5A1874 #8122A7 #A732D5

Accessibility & contrast

On white

11.55
#5A1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1874
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1874#FFFFFF#000000##FFFFFF
##5A18741.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#113B72
Tritanopia (blue-blind)
#572D45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1874;
/* rgb */ color: rgb(90, 24, 116);
/* oklch */ color: oklch(36.4% 0.152 314.2);
Tailwind
colors: {
  custom: {
    50: '#8c5d9d',
    500: '#5a1874',
    950: '#000000',
  },
}
SCSS
$custom: #5a1874;
$custom-light: #8c5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1874",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 283.043,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36418,
    "c": 0.152,
    "h": 314.2
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#5A1874
secondary
#5DA93F
accent
#E93F6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A1874

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

Preview Lab → · Contrast checker → · Palette generator →

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