#5A2282#5A2282

#5A2282 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.154 H 307.2°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5A2282
RGBrgb(90, 34, 130)
HSLhsl(275, 59%, 32%)
HSVhsv(275, 74%, 51%)
CMYKcmyk(30.8%, 73.8%, 0%, 49%)
CIE-LABlab(26.53, 43.01, -43.31)
CIE-LCHlch(26.53, 61.04, 314.80°)
OKLaboklab(38.58% 0.0933 -0.1229)
OKLCHoklch(38.58% 0.154 307.2)
XYZxyz(8.8169, 4.9295, 21.6018)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2282 #4A8222
analogous
#2A2282 #5A2282 #82227A
triadic
#5A2282 #825A22 #22825A
tetradic
#5A2282 #822A22 #4A8222 #227A82
square
#5A2282 #822A22 #4A8222 #227A82
split-complementary
#5A2282 #7A8222 #22822A
monochromatic
#170921 #381551 #5A2282 #7C2FB3 #9A4ED1

Accessibility & contrast

On white

10.58
#5A2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2282
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2282#FFFFFF#000000##FFFFFF
##5A22821.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#013F80
Tritanopia (blue-blind)
#533850
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2282;
/* rgb */ color: rgb(90, 34, 130);
/* oklch */ color: oklch(38.6% 0.154 307.2);
Tailwind
colors: {
  custom: {
    50: '#8d62a7',
    500: '#5a2282',
    950: '#000000',
  },
}
SCSS
$custom: #5a2282;
$custom-light: #8d62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2282",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 275,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38578,
    "c": 0.15433,
    "h": 307.2
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#5A2282
secondary
#77B44C
accent
#E24687
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5A2282

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

Preview Lab → · Contrast checker → · Palette generator →

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