#5A2492#5A2492

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

Color values

HEX#5A2492
RGBrgb(90, 36, 146)
HSLhsl(269, 60%, 36%)
HSVhsv(269, 75%, 57%)
CMYKcmyk(38.4%, 75.3%, 0%, 42.7%)
CIE-LABlab(28.14, 46.04, -50.65)
CIE-LCHlch(28.14, 68.45, 312.27°)
OKLaboklab(40.12% 0.0881 -0.1445)
OKLCHoklch(40.12% 0.169 301.4)
XYZxyz(10.0344, 5.5107, 27.7236)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2492 #5C9224
analogous
#242592 #5A2492 #912492
triadic
#5A2492 #925A24 #24925A
tetradic
#5A2492 #922425 #5C9224 #249291
square
#5A2492 #922425 #5C9224 #249291
split-complementary
#5A2492 #929124 #259224
monochromatic
#1D0C30 #3C1861 #5A2492 #7830C3 #975AD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2492#FFFFFF#000000##FFFFFF
##5A24921.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)
#004295
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#4E4059
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2492;
/* rgb */ color: rgb(90, 36, 146);
/* oklch */ color: oklch(40.1% 0.169 301.4);
Tailwind
colors: {
  custom: {
    50: '#8e64b3',
    500: '#5a2492',
    950: '#000000',
  },
}
SCSS
$custom: #5a2492;
$custom-light: #8e64b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2492",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 269.455,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4012,
    "c": 0.16926,
    "h": 301.4
  },
  "luminance": 0.05511
}

Semantic roles & 50–950 ramp

primary
#5A2492
secondary
#8ABB57
accent
#E44495
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2492

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

Preview Lab → · Contrast checker → · Palette generator →

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