#5A1882#5A1882

#5A1882 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.166 H 308.4°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#5A1882
RGBrgb(90, 24, 130)
HSLhsl(277, 69%, 30%)
HSVhsv(277, 82%, 51%)
CMYKcmyk(30.8%, 81.5%, 0%, 49%)
CIE-LABlab(25.07, 47.19, -45.69)
CIE-LCHlch(25.07, 65.68, 315.93°)
OKLaboklab(37.55% 0.1029 -0.1298)
OKLCHoklch(37.55% 0.166 308.4)
XYZxyz(8.5715, 4.4388, 21.5200)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1882 #408218
analogous
#251882 #5A1882 #821875
triadic
#5A1882 #825A18 #18825A
tetradic
#5A1882 #822518 #408218 #187582
square
#5A1882 #822518 #408218 #187582
split-complementary
#5A1882 #758218 #188225
monochromatic
#12051B #360E4E #5A1882 #7E22B6 #9E3ADB

Accessibility & contrast

On white

11.12
#5A1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A1882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1882
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1882#FFFFFF#000000##FFFFFF
##5A18821.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1882;
/* rgb */ color: rgb(90, 24, 130);
/* oklch */ color: oklch(37.5% 0.166 308.4);
Tailwind
colors: {
  custom: {
    50: '#8d5ea7',
    500: '#5a1882',
    950: '#000000',
  },
}
SCSS
$custom: #5a1882;
$custom-light: #8d5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1882",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 277.358,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37548,
    "c": 0.16568,
    "h": 308.4
  },
  "luminance": 0.04439
}

Semantic roles & 50–950 ramp

primary
#5A1882
secondary
#6CB640
accent
#EC3C7E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1882

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

Preview Lab → · Contrast checker → · Palette generator →

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