#5A1D89#5A1D89

#5A1D89 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.168 H 305.3°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5A1D89
RGBrgb(90, 29, 137)
HSLhsl(274, 65%, 33%)
HSVhsv(274, 79%, 54%)
CMYKcmyk(34.3%, 78.8%, 0%, 46.3%)
CIE-LABlab(26.33, 46.88, -48.03)
CIE-LCHlch(26.33, 67.11, 314.30°)
OKLaboklab(38.61% 0.0968 -0.1368)
OKLCHoklch(38.61% 0.168 305.3)
XYZxyz(9.1702, 4.8586, 24.1168)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D89 #4C891D
analogous
#241D89 #5A1D89 #891D82
triadic
#5A1D89 #895A1D #1D895A
tetradic
#5A1D89 #89241D #4C891D #1D8289
square
#5A1D89 #89241D #4C891D #1D8289
split-complementary
#5A1D89 #82891D #1D8924
monochromatic
#180824 #391256 #5A1D89 #7B28BC #9A48D8

Accessibility & contrast

On white

10.65
#5A1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1D89
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D89#FFFFFF#000000##FFFFFF
##5A1D891.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#513952
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a1d89;
/* rgb */ color: rgb(90, 29, 137);
/* oklch */ color: oklch(38.6% 0.168 305.3);
Tailwind
colors: {
  custom: {
    50: '#8e60ac',
    500: '#5a1d89',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d89;
$custom-light: #8e60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d89",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 273.889,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3861,
    "c": 0.16755,
    "h": 305.3
  },
  "luminance": 0.04859
}

Semantic roles & 50–950 ramp

primary
#5A1D89
secondary
#79BA47
accent
#E84089
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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