#5A2997#5A2997

#5A2997 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.169 H 299.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5A2997
RGBrgb(90, 41, 151)
HSLhsl(267, 57%, 38%)
HSVhsv(267, 73%, 59%)
CMYKcmyk(40.4%, 72.8%, 0%, 40.8%)
CIE-LABlab(29.40, 44.95, -51.68)
CIE-LCHlch(29.40, 68.50, 311.01°)
OKLaboklab(41.14% 0.0821 -0.1476)
OKLCHoklch(41.14% 0.169 299.1)
XYZxyz(10.5939, 5.9938, 29.8709)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2997 #669729
analogous
#292F97 #5A2997 #912997
triadic
#5A2997 #975A29 #29975A
tetradic
#5A2997 #97292F #669729 #299791
square
#5A2997 #97292F #669729 #299791
split-complementary
#5A2997 #979129 #2F9729
monochromatic
#210F37 #3D1C67 #5A2997 #7736C7 #9765D5

Accessibility & contrast

On white

9.55
#5A2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2997
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2997#FFFFFF#000000##FFFFFF
##5A29971.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#4C445D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2997;
/* rgb */ color: rgb(90, 41, 151);
/* oklch */ color: oklch(41.1% 0.169 299.1);
Tailwind
colors: {
  custom: {
    50: '#8e67b6',
    500: '#5a2997',
    950: '#000000',
  },
}
SCSS
$custom: #5a2997;
$custom-light: #8e67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2997",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 266.727,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41136,
    "c": 0.16887,
    "h": 299.1
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#5A2997
secondary
#93BB61
accent
#E1479C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2997

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

Preview Lab → · Contrast checker → · Palette generator →

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