#5A2399#5A2399

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

Color values

HEX#5A2399
RGBrgb(90, 35, 153)
HSLhsl(268, 63%, 37%)
HSVhsv(268, 77%, 60%)
CMYKcmyk(41.2%, 77.1%, 0%, 40%)
CIE-LABlab(28.58, 48.26, -54.24)
CIE-LCHlch(28.58, 72.61, 311.66°)
OKLaboklab(40.61% 0.0873 -0.1551)
OKLCHoklch(40.61% 0.178 299.4)
XYZxyz(10.5658, 5.6755, 30.6696)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2399 #629923
analogous
#232799 #5A2399 #952399
triadic
#5A2399 #995A23 #23995A
tetradic
#5A2399 #992327 #629923 #239995
square
#5A2399 #992327 #629923 #239995
split-complementary
#5A2399 #999523 #279923
monochromatic
#1F0C35 #3D1867 #5A2399 #772ECB #975DDA

Accessibility & contrast

On white

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

On black

2.14
#5A2399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A2399#FFFFFF#000000##FFFFFF
##5A23991.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#4B425D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2399;
/* rgb */ color: rgb(90, 35, 153);
/* oklch */ color: oklch(40.6% 0.178 299.4);
Tailwind
colors: {
  custom: {
    50: '#8f64b8',
    500: '#5a2399',
    950: '#000000',
  },
}
SCSS
$custom: #5a2399;
$custom-light: #8f64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2399",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 267.966,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40611,
    "c": 0.17796,
    "h": 299.4
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#5A2399
secondary
#8FBE59
accent
#E64299
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2399

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

Preview Lab → · Contrast checker → · Palette generator →

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