#5A2394#5A2394

#5A2394 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.173 H 300.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5A2394
RGBrgb(90, 35, 148)
HSLhsl(269, 62%, 36%)
HSVhsv(269, 76%, 58%)
CMYKcmyk(39.2%, 76.4%, 0%, 42%)
CIE-LABlab(28.15, 47.00, -51.87)
CIE-LCHlch(28.15, 70.00, 312.18°)
OKLaboklab(40.18% 0.0886 -0.1481)
OKLCHoklch(40.18% 0.173 300.9)
XYZxyz(10.1615, 5.5138, 28.5401)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2394 #5D9423
analogous
#232494 #5A2394 #922394
triadic
#5A2394 #945A23 #23945A
tetradic
#5A2394 #942324 #5D9423 #239492
square
#5A2394 #942324 #5D9423 #239492
split-complementary
#5A2394 #949223 #249423
monochromatic
#1E0C31 #3C1763 #5A2394 #782FC5 #975AD8

Accessibility & contrast

On white

9.99
#5A2394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2394
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2394#FFFFFF#000000##FFFFFF
##5A23941.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#4D405A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2394;
/* rgb */ color: rgb(90, 35, 148);
/* oklch */ color: oklch(40.2% 0.173 300.9);
Tailwind
colors: {
  custom: {
    50: '#8e64b4',
    500: '#5a2394',
    950: '#000000',
  },
}
SCSS
$custom: #5a2394;
$custom-light: #8e64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2394",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 269.204,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40178,
    "c": 0.17257,
    "h": 300.9
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#5A2394
secondary
#8BBC57
accent
#E54396
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2394

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

Preview Lab → · Contrast checker → · Palette generator →

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