#5A2393#5A2393

#5A2393 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.171 H 301.2°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5A2393
RGBrgb(90, 35, 147)
HSLhsl(269, 62%, 36%)
HSVhsv(269, 76%, 58%)
CMYKcmyk(38.8%, 76.2%, 0%, 42.4%)
CIE-LABlab(28.07, 46.75, -51.40)
CIE-LCHlch(28.07, 69.48, 312.29°)
OKLaboklab(40.09% 0.0888 -0.1467)
OKLCHoklch(40.09% 0.171 301.2)
XYZxyz(10.0827, 5.4822, 28.1251)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2393 #5C9323
analogous
#232493 #5A2393 #922393
triadic
#5A2393 #935A23 #23935A
tetradic
#5A2393 #932324 #5C9323 #239392
square
#5A2393 #932324 #5C9323 #239392
split-complementary
#5A2393 #939223 #249323
monochromatic
#1D0B30 #3C1762 #5A2393 #782FC4 #9759D7

Accessibility & contrast

On white

10.02
#5A2393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A2393 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2393
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2393#FFFFFF#000000##FFFFFF
##5A23931.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#4D4059
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2393;
/* rgb */ color: rgb(90, 35, 147);
/* oklch */ color: oklch(40.1% 0.171 301.2);
Tailwind
colors: {
  custom: {
    50: '#8e64b4',
    500: '#5a2393',
    950: '#000000',
  },
}
SCSS
$custom: #5a2393;
$custom-light: #8e64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2393",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 147
  },
  "hsl": {
    "h": 269.464,
    "s": 61.538,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40093,
    "c": 0.17148,
    "h": 301.2
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#5A2393
secondary
#8ABC56
accent
#E54395
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2393

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

Preview Lab → · Contrast checker → · Palette generator →

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