#5A2996#5A2996

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

Color values

HEX#5A2996
RGBrgb(90, 41, 150)
HSLhsl(267, 57%, 37%)
HSVhsv(267, 73%, 59%)
CMYKcmyk(40%, 72.7%, 0%, 41.2%)
CIE-LABlab(29.31, 44.69, -51.21)
CIE-LCHlch(29.31, 67.96, 311.11°)
OKLaboklab(41.05% 0.0823 -0.1462)
OKLCHoklch(41.05% 0.168 299.4)
XYZxyz(10.5130, 5.9614, 29.4450)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2996 #659629
analogous
#292F96 #5A2996 #902996
triadic
#5A2996 #965A29 #29965A
tetradic
#5A2996 #96292F #659629 #299690
square
#5A2996 #96292F #659629 #299690
split-complementary
#5A2996 #969029 #2F9629
monochromatic
#200F36 #3D1C66 #5A2996 #7736C6 #9765D5

Accessibility & contrast

On white

9.58
#5A2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2996
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2996#FFFFFF#000000##FFFFFF
##5A29961.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#4C445D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2996;
/* rgb */ color: rgb(90, 41, 150);
/* oklch */ color: oklch(41.1% 0.168 299.4);
Tailwind
colors: {
  custom: {
    50: '#8e67b6',
    500: '#5a2996',
    950: '#000000',
  },
}
SCSS
$custom: #5a2996;
$custom-light: #8e67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2996",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 266.972,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41053,
    "c": 0.16774,
    "h": 299.4
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#5A2996
secondary
#92BB60
accent
#E0479C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2996

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

Preview Lab → · Contrast checker → · Palette generator →

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