#5A2197#5A2197

#5A2197 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.178 H 300.2°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5A2197
RGBrgb(90, 33, 151)
HSLhsl(269, 64%, 36%)
HSVhsv(269, 78%, 59%)
CMYKcmyk(40.4%, 78.1%, 0%, 40.8%)
CIE-LABlab(28.10, 48.63, -53.80)
CIE-LCHlch(28.10, 72.52, 312.11°)
OKLaboklab(40.22% 0.0896 -0.1537)
OKLCHoklch(40.22% 0.178 300.2)
XYZxyz(10.3448, 5.4956, 29.7879)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2197 #5E9721
analogous
#212397 #5A2197 #952197
triadic
#5A2197 #975A21 #21975A
tetradic
#5A2197 #972123 #5E9721 #219795
square
#5A2197 #972123 #5E9721 #219795
split-complementary
#5A2197 #979521 #239721
monochromatic
#1E0B33 #3C1665 #5A2197 #782CC9 #9758DA

Accessibility & contrast

On white

10.00
#5A2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2197
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2197#FFFFFF#000000##FFFFFF
##5A21971.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#4C405B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2197;
/* rgb */ color: rgb(90, 33, 151);
/* oklch */ color: oklch(40.2% 0.178 300.2);
Tailwind
colors: {
  custom: {
    50: '#8f63b7',
    500: '#5a2197',
    950: '#000000',
  },
}
SCSS
$custom: #5a2197;
$custom-light: #8f63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2197",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 268.983,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.17794,
    "h": 300.2
  },
  "luminance": 0.05496
}

Semantic roles & 50–950 ramp

primary
#5A2197
secondary
#8CBE55
accent
#E74197
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2197

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

Preview Lab → · Contrast checker → · Palette generator →

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