#5A1390#5A1390

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

Color values

HEX#5A1390
RGBrgb(90, 19, 144)
HSLhsl(274, 77%, 32%)
HSVhsv(274, 87%, 56%)
CMYKcmyk(37.5%, 86.8%, 0%, 43.5%)
CIE-LABlab(25.72, 52.06, -53.37)
CIE-LCHlch(25.72, 74.56, 314.29°)
OKLaboklab(38.38% 0.1024 -0.1524)
OKLCHoklch(38.38% 0.184 303.9)
XYZxyz(9.4822, 4.6530, 26.7787)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1390 #499013
analogous
#1C1390 #5A1390 #901388
triadic
#5A1390 #905A13 #13905A
tetradic
#5A1390 #901C13 #499013 #138890
square
#5A1390 #901C13 #499013 #138890
split-complementary
#5A1390 #889013 #13901C
monochromatic
#160524 #380C5A #5A1390 #7C1AC6 #9A39E5

Accessibility & contrast

On white

10.88
#5A1390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1390
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1390#FFFFFF#000000##FFFFFF
##5A13901.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#4F3854
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1390;
/* rgb */ color: rgb(90, 19, 144);
/* oklch */ color: oklch(38.4% 0.184 303.9);
Tailwind
colors: {
  custom: {
    50: '#8f5db1',
    500: '#5a1390',
    950: '#000000',
  },
}
SCSS
$custom: #5a1390;
$custom-light: #8f5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1390",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 274.08,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38378,
    "c": 0.18355,
    "h": 303.9
  },
  "luminance": 0.04653
}

Semantic roles & 50–950 ramp

primary
#5A1390
secondary
#76C43B
accent
#F33587
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1390

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

Preview Lab → · Contrast checker → · Palette generator →

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