#5A1982#5A1982

#5A1982 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.165 H 308.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5A1982
RGBrgb(90, 25, 130)
HSLhsl(277, 68%, 30%)
HSVhsv(277, 81%, 51%)
CMYKcmyk(30.8%, 80.8%, 0%, 49%)
CIE-LABlab(25.20, 46.81, -45.48)
CIE-LCHlch(25.20, 65.26, 315.83°)
OKLaboklab(37.64% 0.1021 -0.1292)
OKLCHoklch(37.64% 0.165 308.3)
XYZxyz(8.5925, 4.4808, 21.5270)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1982 #418219
analogous
#261982 #5A1982 #821975
triadic
#5A1982 #825A19 #19825A
tetradic
#5A1982 #822619 #418219 #197582
square
#5A1982 #822619 #418219 #197582
split-complementary
#5A1982 #758219 #198226
monochromatic
#13051B #360F4F #5A1982 #7E23B5 #9D3CD9

Accessibility & contrast

On white

11.07
#5A1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1982
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1982#FFFFFF#000000##FFFFFF
##5A19821.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#54344D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1982;
/* rgb */ color: rgb(90, 25, 130);
/* oklch */ color: oklch(37.6% 0.165 308.3);
Tailwind
colors: {
  custom: {
    50: '#8d5ea7',
    500: '#5a1982',
    950: '#000000',
  },
}
SCSS
$custom: #5a1982;
$custom-light: #8d5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1982",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 277.143,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37639,
    "c": 0.16467,
    "h": 308.3
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#5A1982
secondary
#6DB641
accent
#EB3D7F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1982

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

Preview Lab → · Contrast checker → · Palette generator →

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