#5A2390#5A2390

#5A2390 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.168 H 302.1°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5A2390
RGBrgb(90, 35, 144)
HSLhsl(270, 61%, 35%)
HSVhsv(270, 76%, 56%)
CMYKcmyk(37.5%, 75.7%, 0%, 43.5%)
CIE-LABlab(27.82, 46.00, -49.95)
CIE-LCHlch(27.82, 67.90, 312.64°)
OKLaboklab(39.84% 0.0895 -0.1424)
OKLCHoklch(39.84% 0.168 302.1)
XYZxyz(9.8503, 5.3893, 26.9014)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2390 #599023
analogous
#232390 #5A2390 #902390
triadic
#5A2390 #905A23 #23905A
tetradic
#5A2390 #902323 #599023 #239090
square
#5A2390 #902323 #599023 #239090
split-complementary
#5A2390 #909023 #239023
monochromatic
#1C0B2E #3B175F #5A2390 #792FC1 #9757D6

Accessibility & contrast

On white

10.11
#5A2390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2390
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2390#FFFFFF#000000##FFFFFF
##5A23901.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#4F3E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2390;
/* rgb */ color: rgb(90, 35, 144);
/* oklch */ color: oklch(39.8% 0.168 302.1);
Tailwind
colors: {
  custom: {
    50: '#8e64b1',
    500: '#5a2390',
    950: '#000000',
  },
}
SCSS
$custom: #5a2390;
$custom-light: #8e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2390",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 144
  },
  "hsl": {
    "h": 270.275,
    "s": 60.894,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39838,
    "c": 0.16824,
    "h": 302.1
  },
  "luminance": 0.05389
}

Semantic roles & 50–950 ramp

primary
#5A2390
secondary
#87BA54
accent
#E44493
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2390

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

Preview Lab → · Contrast checker → · Palette generator →

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