#5A2397#5A2397

#5A2397 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.176 H 300.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5A2397
RGBrgb(90, 35, 151)
HSLhsl(268, 62%, 36%)
HSVhsv(268, 77%, 59%)
CMYKcmyk(40.4%, 76.8%, 0%, 40.8%)
CIE-LABlab(28.41, 47.76, -53.30)
CIE-LCHlch(28.41, 71.57, 311.86°)
OKLaboklab(40.44% 0.0878 -0.1523)
OKLCHoklch(40.44% 0.176 300)
XYZxyz(10.4020, 5.6100, 29.8070)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2397 #609723
analogous
#232697 #5A2397 #942397
triadic
#5A2397 #975A23 #23975A
tetradic
#5A2397 #972326 #609723 #239794
square
#5A2397 #972326 #609723 #239794
split-complementary
#5A2397 #979423 #269723
monochromatic
#1F0C34 #3C1765 #5A2397 #782FC9 #975BD9

Accessibility & contrast

On white

9.90
#5A2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5A2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2397
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2397#FFFFFF#000000##FFFFFF
##5A23971.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#4C415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2397;
/* rgb */ color: rgb(90, 35, 151);
/* oklch */ color: oklch(40.4% 0.176 300.0);
Tailwind
colors: {
  custom: {
    50: '#8f64b6',
    500: '#5a2397',
    950: '#000000',
  },
}
SCSS
$custom: #5a2397;
$custom-light: #8f64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2397",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 268.448,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40437,
    "c": 0.17581,
    "h": 300
  },
  "luminance": 0.0561
}

Semantic roles & 50–950 ramp

primary
#5A2397
secondary
#8EBE58
accent
#E54298
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2397

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

Preview Lab → · Contrast checker → · Palette generator →

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