#5A2392#5A2392

#5A2392 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.170 H 301.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5A2392
RGBrgb(90, 35, 146)
HSLhsl(270, 61%, 35%)
HSVhsv(270, 76%, 57%)
CMYKcmyk(38.4%, 76%, 0%, 42.7%)
CIE-LABlab(27.98, 46.50, -50.92)
CIE-LCHlch(27.98, 68.95, 312.40°)
OKLaboklab(40.01% 0.0891 -0.1453)
OKLCHoklch(40.01% 0.17 301.5)
XYZxyz(10.0045, 5.4510, 27.7136)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2392 #5B9223
analogous
#232392 #5A2392 #912392
triadic
#5A2392 #925A23 #23925A
tetradic
#5A2392 #922323 #5B9223 #239291
square
#5A2392 #922323 #5B9223 #239291
split-complementary
#5A2392 #929123 #239223
monochromatic
#1D0B2F #3C1761 #5A2392 #782FC3 #9758D7

Accessibility & contrast

On white

10.05
#5A2392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5A2392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2392
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2392#FFFFFF#000000##FFFFFF
##5A23921.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.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: #5a2392;
/* rgb */ color: rgb(90, 35, 146);
/* oklch */ color: oklch(40.0% 0.170 301.5);
Tailwind
colors: {
  custom: {
    50: '#8e64b3',
    500: '#5a2392',
    950: '#000000',
  },
}
SCSS
$custom: #5a2392;
$custom-light: #8e64b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2392",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 269.73,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.17041,
    "h": 301.5
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#5A2392
secondary
#89BB55
accent
#E44395
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2392

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

Preview Lab → · Contrast checker → · Palette generator →

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