#5A2595#5A2595

#5A2595 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.171 H 300.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5A2595
RGBrgb(90, 37, 149)
HSLhsl(268, 60%, 36%)
HSVhsv(268, 75%, 58%)
CMYKcmyk(39.6%, 75.2%, 0%, 41.6%)
CIE-LABlab(28.56, 46.34, -51.83)
CIE-LCHlch(28.56, 69.53, 311.80°)
OKLaboklab(40.49% 0.0865 -0.148)
OKLCHoklch(40.49% 0.171 300.3)
XYZxyz(10.3015, 5.6666, 28.9790)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2595 #609525
analogous
#252895 #5A2595 #922595
triadic
#5A2595 #955A25 #25955A
tetradic
#5A2595 #952528 #609525 #259592
square
#5A2595 #952528 #609525 #259592
split-complementary
#5A2595 #959225 #289525
monochromatic
#1F0D33 #3C1964 #5A2595 #7831C6 #975ED7

Accessibility & contrast

On white

9.84
#5A2595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5A2595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2595
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2595#FFFFFF#000000##FFFFFF
##5A25951.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#4C415B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2595;
/* rgb */ color: rgb(90, 37, 149);
/* oklch */ color: oklch(40.5% 0.171 300.3);
Tailwind
colors: {
  custom: {
    50: '#8e65b5',
    500: '#5a2595',
    950: '#000000',
  },
}
SCSS
$custom: #5a2595;
$custom-light: #8e65b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2595",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 268.393,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40489,
    "c": 0.17139,
    "h": 300.3
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#5A2595
secondary
#8EBC5A
accent
#E34498
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2595

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

Preview Lab → · Contrast checker → · Palette generator →

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