#5A2995#5A2995

#5A2995 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.167 H 299.7°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5A2995
RGBrgb(90, 41, 149)
HSLhsl(267, 57%, 37%)
HSVhsv(267, 72%, 58%)
CMYKcmyk(39.6%, 72.5%, 0%, 41.6%)
CIE-LABlab(29.23, 44.43, -50.72)
CIE-LCHlch(29.23, 67.43, 311.21°)
OKLaboklab(40.97% 0.0825 -0.1448)
OKLCHoklch(40.97% 0.167 299.7)
XYZxyz(10.4328, 5.9293, 29.0228)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2995 #649529
analogous
#292E95 #5A2995 #902995
triadic
#5A2995 #955A29 #29955A
tetradic
#5A2995 #95292E #649529 #299590
square
#5A2995 #95292E #649529 #299590
split-complementary
#5A2995 #959029 #2E9529
monochromatic
#200F35 #3D1C65 #5A2995 #7736C5 #9764D4

Accessibility & contrast

On white

9.61
#5A2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2995
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2995#FFFFFF#000000##FFFFFF
##5A29951.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#4C445C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2995;
/* rgb */ color: rgb(90, 41, 149);
/* oklch */ color: oklch(41.0% 0.167 299.7);
Tailwind
colors: {
  custom: {
    50: '#8e67b5',
    500: '#5a2995',
    950: '#000000',
  },
}
SCSS
$custom: #5a2995;
$custom-light: #8e67b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2995",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 267.222,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40969,
    "c": 0.16661,
    "h": 299.7
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#5A2995
secondary
#91BA60
accent
#E0489B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2995

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

Preview Lab → · Contrast checker → · Palette generator →

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