#5A1280#5A1280

#5A1280 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.169 H 309.7°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#5A1280
RGBrgb(90, 18, 128)
HSLhsl(279, 75%, 29%)
HSVhsv(279, 86%, 50%)
CMYKcmyk(29.7%, 85.9%, 0%, 49.8%)
CIE-LABlab(24.21, 48.76, -45.83)
CIE-LCHlch(24.21, 66.92, 316.78°)
OKLaboklab(36.9% 0.1082 -0.1302)
OKLCHoklch(36.9% 0.169 309.7)
XYZxyz(8.3283, 4.1650, 20.7831)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1280 #388012
analogous
#231280 #5A1280 #80126F
triadic
#5A1280 #805A12 #12805A
tetradic
#5A1280 #802312 #388012 #126F80
square
#5A1280 #802312 #388012 #126F80
split-complementary
#5A1280 #6F8012 #128023
monochromatic
#13041B #340A4A #5A1280 #801AB6 #A22BE1

Accessibility & contrast

On white

11.46
#5A1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5A1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1280
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1280#FFFFFF#000000##FFFFFF
##5A12801.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#54304B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1280;
/* rgb */ color: rgb(90, 18, 128);
/* oklch */ color: oklch(36.9% 0.169 309.7);
Tailwind
colors: {
  custom: {
    50: '#8d5ba6',
    500: '#5a1280',
    950: '#000000',
  },
}
SCSS
$custom: #5a1280;
$custom-light: #8d5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1280",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 279.273,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.16927,
    "h": 309.7
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#5A1280
secondary
#64B638
accent
#F23677
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A1280

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

Preview Lab → · Contrast checker → · Palette generator →

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