#5A1890#5A1890

#5A1890 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.179 H 303.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5A1890
RGBrgb(90, 24, 144)
HSLhsl(273, 71%, 33%)
HSVhsv(273, 83%, 56%)
CMYKcmyk(37.5%, 83.3%, 0%, 43.5%)
CIE-LABlab(26.28, 50.44, -52.47)
CIE-LCHlch(26.28, 72.78, 313.87°)
OKLaboklab(38.76% 0.0989 -0.1497)
OKLCHoklch(38.76% 0.179 303.5)
XYZxyz(9.5759, 4.8405, 26.8100)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1890 #4E9018
analogous
#1E1890 #5A1890 #90188A
triadic
#5A1890 #905A18 #18905A
tetradic
#5A1890 #901E18 #4E9018 #188A90
square
#5A1890 #901E18 #4E9018 #188A90
split-complementary
#5A1890 #8A9018 #18901E
monochromatic
#180727 #390F5C #5A1890 #7B21C4 #9943E0

Accessibility & contrast

On white

10.67
#5A1890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5A1890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1890
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1890#FFFFFF#000000##FFFFFF
##5A18901.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#4F3A55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a1890;
/* rgb */ color: rgb(90, 24, 144);
/* oklch */ color: oklch(38.8% 0.179 303.5);
Tailwind
colors: {
  custom: {
    50: '#8f5fb1',
    500: '#5a1890',
    950: '#000000',
  },
}
SCSS
$custom: #5a1890;
$custom-light: #8f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1890",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 144
  },
  "hsl": {
    "h": 273,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3876,
    "c": 0.17948,
    "h": 303.5
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#5A1890
secondary
#7CC043
accent
#EE3A8B
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1890

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

Preview Lab → · Contrast checker → · Palette generator →

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