#5A1281#5A1281

#5A1281 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.170 H 309.3°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5A1281
RGBrgb(90, 18, 129)
HSLhsl(279, 76%, 29%)
HSVhsv(279, 86%, 51%)
CMYKcmyk(30.2%, 86%, 0%, 49.4%)
CIE-LABlab(24.29, 48.98, -46.32)
CIE-LCHlch(24.29, 67.42, 316.60°)
OKLaboklab(36.98% 0.1079 -0.1316)
OKLCHoklch(36.98% 0.17 309.3)
XYZxyz(8.3944, 4.1914, 21.1314)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1281 #398112
analogous
#231281 #5A1281 #811271
triadic
#5A1281 #815A12 #12815A
tetradic
#5A1281 #812312 #398112 #127181
square
#5A1281 #812312 #398112 #127181
split-complementary
#5A1281 #718112 #128123
monochromatic
#13041B #350B4B #5A1281 #7F19B7 #A22CE2

Accessibility & contrast

On white

11.42
#5A1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1281
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1281#FFFFFF#000000##FFFFFF
##5A12811.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#54304C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1281;
/* rgb */ color: rgb(90, 18, 129);
/* oklch */ color: oklch(37.0% 0.170 309.3);
Tailwind
colors: {
  custom: {
    50: '#8d5ba6',
    500: '#5a1281',
    950: '#000000',
  },
}
SCSS
$custom: #5a1281;
$custom-light: #8d5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1281",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 278.919,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3698,
    "c": 0.17019,
    "h": 309.3
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#5A1281
secondary
#65B738
accent
#F23678
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A1281

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

Preview Lab → · Contrast checker → · Palette generator →

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