#5A1889#5A1889

#5A1889 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.173 H 305.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5A1889
RGBrgb(90, 24, 137)
HSLhsl(275, 70%, 32%)
HSVhsv(275, 82%, 54%)
CMYKcmyk(34.3%, 82.5%, 0%, 46.3%)
CIE-LABlab(25.66, 48.80, -49.11)
CIE-LCHlch(25.66, 69.23, 314.82°)
OKLaboklab(38.15% 0.101 -0.1399)
OKLCHoklch(38.15% 0.173 305.8)
XYZxyz(9.0574, 4.6331, 24.0792)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1889 #478918
analogous
#221889 #5A1889 #891880
triadic
#5A1889 #895A18 #18895A
tetradic
#5A1889 #892218 #478918 #188089
square
#5A1889 #892218 #478918 #188089
split-complementary
#5A1889 #808918 #188922
monochromatic
#160621 #380F55 #5A1889 #7C21BD #9B3EDD

Accessibility & contrast

On white

10.90
#5A1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1889
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1889#FFFFFF#000000##FFFFFF
##5A18891.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#513651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1889;
/* rgb */ color: rgb(90, 24, 137);
/* oklch */ color: oklch(38.1% 0.173 305.8);
Tailwind
colors: {
  custom: {
    50: '#8e5eac',
    500: '#5a1889',
    950: '#000000',
  },
}
SCSS
$custom: #5a1889;
$custom-light: #8e5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1889",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 275.044,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38145,
    "c": 0.17257,
    "h": 305.8
  },
  "luminance": 0.04633
}

Semantic roles & 50–950 ramp

primary
#5A1889
secondary
#74BD40
accent
#ED3B85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1889

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

Preview Lab → · Contrast checker → · Palette generator →

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