#5A2499#5A2499

#5A2499 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.177 H 299.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5A2499
RGBrgb(90, 36, 153)
HSLhsl(268, 62%, 37%)
HSVhsv(268, 76%, 60%)
CMYKcmyk(41.2%, 76.5%, 0%, 40%)
CIE-LABlab(28.73, 47.82, -53.99)
CIE-LCHlch(28.73, 72.12, 311.53°)
OKLaboklab(40.72% 0.0864 -0.1543)
OKLCHoklch(40.72% 0.177 299.3)
XYZxyz(10.5956, 5.7352, 30.6796)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2499 #639924
analogous
#242999 #5A2499 #952499
triadic
#5A2499 #995A24 #24995A
tetradic
#5A2499 #992429 #639924 #249995
square
#5A2499 #992429 #639924 #249995
split-complementary
#5A2499 #999524 #299924
monochromatic
#200D36 #3D1867 #5A2499 #7730CB #975ED9

Accessibility & contrast

On white

9.78
#5A2499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A2499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2499
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2499#FFFFFF#000000##FFFFFF
##5A24991.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#4B435D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2499;
/* rgb */ color: rgb(90, 36, 153);
/* oklch */ color: oklch(40.7% 0.177 299.3);
Tailwind
colors: {
  custom: {
    50: '#8f65b8',
    500: '#5a2499',
    950: '#000000',
  },
}
SCSS
$custom: #5a2499;
$custom-light: #8f65b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2499",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 153
  },
  "hsl": {
    "h": 267.692,
    "s": 61.905,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40721,
    "c": 0.17688,
    "h": 299.3
  },
  "luminance": 0.05735
}

Semantic roles & 50–950 ramp

primary
#5A2499
secondary
#90BE5B
accent
#E5439A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2499

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

Preview Lab → · Contrast checker → · Palette generator →

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