#5A2799#5A2799

#5A2799 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.173 H 298.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5A2799
RGBrgb(90, 39, 153)
HSLhsl(267, 59%, 38%)
HSVhsv(267, 75%, 60%)
CMYKcmyk(41.2%, 74.5%, 0%, 40%)
CIE-LABlab(29.22, 46.43, -53.19)
CIE-LCHlch(29.22, 70.61, 311.12°)
OKLaboklab(41.06% 0.0836 -0.152)
OKLCHoklch(41.06% 0.174 298.8)
XYZxyz(10.6903, 5.9245, 30.7111)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2799 #669927
analogous
#272D99 #5A2799 #932799
triadic
#5A2799 #995A27 #27995A
tetradic
#5A2799 #99272D #669927 #279993
square
#5A2799 #99272D #669927 #279993
split-complementary
#5A2799 #999327 #2D9927
monochromatic
#210E37 #3D1B68 #5A2799 #7733CA #9763D7

Accessibility & contrast

On white

9.61
#5A2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2799
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2799#FFFFFF#000000##FFFFFF
##5A27991.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#4B445E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2799;
/* rgb */ color: rgb(90, 39, 153);
/* oklch */ color: oklch(41.1% 0.173 298.8);
Tailwind
colors: {
  custom: {
    50: '#8f66b8',
    500: '#5a2799',
    950: '#000000',
  },
}
SCSS
$custom: #5a2799;
$custom-light: #8f66b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2799",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 266.842,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41064,
    "c": 0.1735,
    "h": 298.8
  },
  "luminance": 0.05925
}

Semantic roles & 50–950 ramp

primary
#5A2799
secondary
#93BD5F
accent
#E3459C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2799

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

Preview Lab → · Contrast checker → · Palette generator →

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