#5A2292#5A2292

#5A2292 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.172 H 301.6°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5A2292
RGBrgb(90, 34, 146)
HSLhsl(270, 62%, 35%)
HSVhsv(270, 77%, 57%)
CMYKcmyk(38.4%, 76.7%, 0%, 42.7%)
CIE-LABlab(27.83, 46.94, -51.17)
CIE-LCHlch(27.83, 69.44, 312.53°)
OKLaboklab(39.9% 0.09 -0.146)
OKLCHoklch(39.9% 0.172 301.6)
XYZxyz(9.9755, 5.3930, 27.7040)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2292 #5A9222
analogous
#222292 #5A2292 #922292
triadic
#5A2292 #925A22 #22925A
tetradic
#5A2292 #922222 #5A9222 #229292
square
#5A2292 #922222 #5A9222 #229292
split-complementary
#5A2292 #929222 #229222
monochromatic
#1D0B2F #3B1660 #5A2292 #792EC4 #9757D8

Accessibility & contrast

On white

10.10
#5A2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5A2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2292
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2292#FFFFFF#000000##FFFFFF
##5A22921.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#4E3F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2292;
/* rgb */ color: rgb(90, 34, 146);
/* oklch */ color: oklch(39.9% 0.172 301.6);
Tailwind
colors: {
  custom: {
    50: '#8e63b3',
    500: '#5a2292',
    950: '#000000',
  },
}
SCSS
$custom: #5a2292;
$custom-light: #8e63b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2292",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 270,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39897,
    "c": 0.17152,
    "h": 301.6
  },
  "luminance": 0.05393
}

Semantic roles & 50–950 ramp

primary
#5A2292
secondary
#88BC54
accent
#E54394
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2292

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

Preview Lab → · Contrast checker → · Palette generator →

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