#5A2097#5A2097

#5A2097 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.179 H 300.4°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5A2097
RGBrgb(90, 32, 151)
HSLhsl(269, 65%, 36%)
HSVhsv(269, 79%, 59%)
CMYKcmyk(40.4%, 78.8%, 0%, 40.8%)
CIE-LABlab(27.96, 49.05, -54.04)
CIE-LCHlch(27.96, 72.98, 312.23°)
OKLaboklab(40.12% 0.0905 -0.1544)
OKLCHoklch(40.12% 0.179 300.4)
XYZxyz(10.3175, 5.4410, 29.7788)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2097 #5D9720
analogous
#202197 #5A2097 #952097
triadic
#5A2097 #975A20 #20975A
tetradic
#5A2097 #972021 #5D9720 #209795
square
#5A2097 #972021 #5D9720 #209795
split-complementary
#5A2097 #979520 #219720
monochromatic
#1E0B32 #3C1564 #5A2097 #782BC9 #9756DB

Accessibility & contrast

On white

10.06
#5A2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2097
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2097#FFFFFF#000000##FFFFFF
##5A20971.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.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: #5a2097;
/* rgb */ color: rgb(90, 32, 151);
/* oklch */ color: oklch(40.1% 0.179 300.4);
Tailwind
colors: {
  custom: {
    50: '#8f63b7',
    500: '#5a2097',
    950: '#000000',
  },
}
SCSS
$custom: #5a2097;
$custom-light: #8f63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2097",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 269.244,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40121,
    "c": 0.17897,
    "h": 300.4
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#5A2097
secondary
#8BBF54
accent
#E84096
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2097

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

Preview Lab → · Contrast checker → · Palette generator →

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