#5A2290#5A2290

#5A2290 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.169 H 302.3°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5A2290
RGBrgb(90, 34, 144)
HSLhsl(271, 62%, 35%)
HSVhsv(271, 76%, 56%)
CMYKcmyk(37.5%, 76.4%, 0%, 43.5%)
CIE-LABlab(27.66, 46.44, -50.21)
CIE-LCHlch(27.66, 68.40, 312.77°)
OKLaboklab(39.73% 0.0905 -0.1432)
OKLCHoklch(39.73% 0.169 302.3)
XYZxyz(9.8213, 5.3313, 26.8918)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2290 #589022
analogous
#232290 #5A2290 #90228F
triadic
#5A2290 #905A22 #22905A
tetradic
#5A2290 #902322 #589022 #228F90
square
#5A2290 #902322 #589022 #228F90
split-complementary
#5A2290 #8F9022 #229023
monochromatic
#1C0B2D #3B165E #5A2290 #792EC2 #9755D7

Accessibility & contrast

On white

10.16
#5A2290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A2290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2290
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2290#FFFFFF#000000##FFFFFF
##5A22901.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#4F3E57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2290;
/* rgb */ color: rgb(90, 34, 144);
/* oklch */ color: oklch(39.7% 0.169 302.3);
Tailwind
colors: {
  custom: {
    50: '#8e63b1',
    500: '#5a2290',
    950: '#000000',
  },
}
SCSS
$custom: #5a2290;
$custom-light: #8e63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2290",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 270.545,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39727,
    "c": 0.16938,
    "h": 302.3
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#5A2290
secondary
#86BB53
accent
#E54392
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2290

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

Preview Lab → · Contrast checker → · Palette generator →

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