#5A1983#5A1983

#5A1983 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.166 H 307.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#5A1983
RGBrgb(90, 25, 131)
HSLhsl(277, 68%, 31%)
HSVhsv(277, 81%, 51%)
CMYKcmyk(31.3%, 80.9%, 0%, 48.6%)
CIE-LABlab(25.28, 47.04, -45.97)
CIE-LCHlch(25.28, 65.78, 315.66°)
OKLaboklab(37.72% 0.1018 -0.1307)
OKLCHoklch(37.72% 0.166 307.9)
XYZxyz(8.6599, 4.5077, 21.8822)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1983 #428319
analogous
#251983 #5A1983 #831977
triadic
#5A1983 #835A19 #19835A
tetradic
#5A1983 #832519 #428319 #197783
square
#5A1983 #832519 #428319 #197783
split-complementary
#5A1983 #778319 #198325
monochromatic
#13051C #370F50 #5A1983 #7D23B6 #9D3DDA

Accessibility & contrast

On white

11.04
#5A1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1983
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1983#FFFFFF#000000##FFFFFF
##5A19831.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#53344E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1983;
/* rgb */ color: rgb(90, 25, 131);
/* oklch */ color: oklch(37.7% 0.166 307.9);
Tailwind
colors: {
  custom: {
    50: '#8d5ea8',
    500: '#5a1983',
    950: '#000000',
  },
}
SCSS
$custom: #5a1983;
$custom-light: #8d5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1983",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 276.792,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37722,
    "c": 0.16567,
    "h": 307.9
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#5A1983
secondary
#6FB741
accent
#EB3D80
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1983

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

Preview Lab → · Contrast checker → · Palette generator →

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