#5A1E82#5A1E82

#5A1E82 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.159 H 307.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5A1E82
RGBrgb(90, 30, 130)
HSLhsl(276, 63%, 31%)
HSVhsv(276, 77%, 51%)
CMYKcmyk(30.8%, 76.9%, 0%, 49%)
CIE-LABlab(25.90, 44.79, -44.33)
CIE-LCHlch(25.90, 63.02, 315.30°)
OKLaboklab(38.13% 0.0974 -0.1259)
OKLCHoklch(38.13% 0.159 307.7)
XYZxyz(8.7091, 4.7140, 21.5659)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1E82 #46821E
analogous
#281E82 #5A1E82 #821E78
triadic
#5A1E82 #825A1E #1E825A
tetradic
#5A1E82 #82281E #46821E #1E7882
square
#5A1E82 #82281E #46821E #1E7882
split-complementary
#5A1E82 #78821E #1E8228
monochromatic
#15071F #381350 #5A1E82 #7C29B4 #9B46D4

Accessibility & contrast

On white

10.81
#5A1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5A1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1E82
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1E82#FFFFFF#000000##FFFFFF
##5A1E821.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#53364F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1e82;
/* rgb */ color: rgb(90, 30, 130);
/* oklch */ color: oklch(38.1% 0.159 307.7);
Tailwind
colors: {
  custom: {
    50: '#8d60a7',
    500: '#5a1e82',
    950: '#000000',
  },
}
SCSS
$custom: #5a1e82;
$custom-light: #8d60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1e82",
  "rgb": {
    "r": 90,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 276,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38133,
    "c": 0.1592,
    "h": 307.7
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#5A1E82
secondary
#73B547
accent
#E64284
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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