#5A2082#5A2082

#5A2082 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.157 H 307.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5A2082
RGBrgb(90, 32, 130)
HSLhsl(276, 60%, 32%)
HSVhsv(276, 75%, 51%)
CMYKcmyk(30.8%, 75.4%, 0%, 49%)
CIE-LABlab(26.21, 43.92, -43.84)
CIE-LCHlch(26.21, 62.05, 315.05°)
OKLaboklab(38.35% 0.0954 -0.1244)
OKLCHoklch(38.35% 0.157 307.5)
XYZxyz(8.7614, 4.8185, 21.5833)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2082 #488220
analogous
#292082 #5A2082 #822079
triadic
#5A2082 #825A20 #20825A
tetradic
#5A2082 #822920 #488220 #207982
square
#5A2082 #822920 #488220 #207982
split-complementary
#5A2082 #798220 #208229
monochromatic
#160820 #381451 #5A2082 #7C2CB3 #9B4AD2

Accessibility & contrast

On white

10.69
#5A2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5A2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2082
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2082#FFFFFF#000000##FFFFFF
##5A20821.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#53374F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a2082;
/* rgb */ color: rgb(90, 32, 130);
/* oklch */ color: oklch(38.4% 0.157 307.5);
Tailwind
colors: {
  custom: {
    50: '#8d61a7',
    500: '#5a2082',
    950: '#000000',
  },
}
SCSS
$custom: #5a2082;
$custom-light: #8d61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2082",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 275.51,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3835,
    "c": 0.15681,
    "h": 307.5
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#5A2082
secondary
#75B549
accent
#E44485
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5A2082

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

Preview Lab → · Contrast checker → · Palette generator →

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