#5A259A#5A259A

#5A259A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.177 H 298.8°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5A259A
RGBrgb(90, 37, 154)
HSLhsl(267, 61%, 37%)
HSVhsv(267, 76%, 60%)
CMYKcmyk(41.6%, 76%, 0%, 39.6%)
CIE-LABlab(28.98, 47.62, -54.20)
CIE-LCHlch(28.98, 72.15, 311.30°)
OKLaboklab(40.92% 0.0853 -0.1549)
OKLCHoklch(40.92% 0.177 298.8)
XYZxyz(10.7093, 5.8297, 31.1266)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A259A #659A25
analogous
#252B9A #5A259A #94259A
triadic
#5A259A #9A5A25 #259A5A
tetradic
#5A259A #9A252B #659A25 #259A94
square
#5A259A #9A252B #659A25 #259A94
split-complementary
#5A259A #9A9425 #2B9A25
monochromatic
#200D37 #3D1969 #5A259A #7731CB #9760D9

Accessibility & contrast

On white

9.70
#5A259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A259A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A259A#FFFFFF#000000##FFFFFF
##5A259A1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#4A435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a259a;
/* rgb */ color: rgb(90, 37, 154);
/* oklch */ color: oklch(40.9% 0.177 298.8);
Tailwind
colors: {
  custom: {
    50: '#8f65b9',
    500: '#5a259a',
    950: '#000000',
  },
}
SCSS
$custom: #5a259a;
$custom-light: #8f65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a259a",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 267.179,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40919,
    "c": 0.17686,
    "h": 298.8
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#5A259A
secondary
#92BE5D
accent
#E4439B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A259A

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

Preview Lab → · Contrast checker → · Palette generator →

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