#5A1B89#5A1B89

#5A1B89 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.170 H 305.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5A1B89
RGBrgb(90, 27, 137)
HSLhsl(274, 67%, 32%)
HSVhsv(274, 80%, 54%)
CMYKcmyk(34.3%, 80.3%, 0%, 46.3%)
CIE-LABlab(26.05, 47.67, -48.48)
CIE-LCHlch(26.05, 67.99, 314.52°)
OKLaboklab(38.42% 0.0986 -0.1381)
OKLCHoklch(38.42% 0.17 305.5)
XYZxyz(9.1227, 4.7637, 24.1010)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B89 #4A891B
analogous
#231B89 #5A1B89 #891B81
triadic
#5A1B89 #895A1B #1B895A
tetradic
#5A1B89 #89231B #4A891B #1B8189
square
#5A1B89 #89231B #4A891B #1B8189
split-complementary
#5A1B89 #81891B #1B8923
monochromatic
#170723 #381156 #5A1B89 #7C25BC #9A44DA

Accessibility & contrast

On white

10.75
#5A1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A1B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B89
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B89#FFFFFF#000000##FFFFFF
##5A1B891.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1b89;
/* rgb */ color: rgb(90, 27, 137);
/* oklch */ color: oklch(38.4% 0.170 305.5);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5a1b89',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b89;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b89",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 274.364,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38416,
    "c": 0.16964,
    "h": 305.5
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#5A1B89
secondary
#77BC44
accent
#EA3E87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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