#5A2C97#5A2C97

#5A2C97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.165 H 298.6°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5A2C97
RGBrgb(90, 44, 151)
HSLhsl(266, 55%, 38%)
HSVhsv(266, 71%, 59%)
CMYKcmyk(40.4%, 70.9%, 0%, 40.8%)
CIE-LABlab(29.93, 43.45, -50.81)
CIE-LCHlch(29.93, 66.85, 310.53°)
OKLaboklab(41.52% 0.079 -0.145)
OKLCHoklch(41.52% 0.165 298.6)
XYZxyz(10.7016, 6.2092, 29.9068)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C97 #69972C
analogous
#2C3497 #5A2C97 #8F2C97
triadic
#5A2C97 #975A2C #2C975A
tetradic
#5A2C97 #972C34 #69972C #2C978F
square
#5A2C97 #972C34 #69972C #2C978F
split-complementary
#5A2C97 #978F2C #34972C
monochromatic
#221038 #3E1E68 #5A2C97 #763AC6 #976AD4

Accessibility & contrast

On white

9.37
#5A2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C97
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C97#FFFFFF#000000##FFFFFF
##5A2C971.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#4B465E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2c97;
/* rgb */ color: rgb(90, 44, 151);
/* oklch */ color: oklch(41.5% 0.165 298.6);
Tailwind
colors: {
  custom: {
    50: '#8e69b6',
    500: '#5a2c97',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c97;
$custom-light: #8e69b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c97",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 265.794,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41518,
    "c": 0.16514,
    "h": 298.6
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#5A2C97
secondary
#95BA65
accent
#DE4A9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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