#5A25A9#5A25A9

#5A25A9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.193 H 294.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5A25A9
RGBrgb(90, 37, 169)
HSLhsl(264, 64%, 40%)
HSVhsv(264, 78%, 66%)
CMYKcmyk(46.7%, 78.1%, 0%, 33.7%)
CIE-LABlab(30.31, 51.50, -61.12)
CIE-LCHlch(30.31, 79.93, 310.12°)
OKLaboklab(42.26% 0.0812 -0.1753)
OKLCHoklch(42.26% 0.193 294.9)
XYZxyz(12.0375, 6.3610, 38.1220)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25A9 #74A925
analogous
#2532A9 #5A25A9 #9C25A9
triadic
#5A25A9 #A95A25 #25A95A
tetradic
#5A25A9 #A92532 #74A925 #25A99C
square
#5A25A9 #A92532 #74A925 #25A99C
split-complementary
#5A25A9 #A99C25 #32A925
monochromatic
#250F45 #3F1A77 #5A25A9 #7638D3 #996ADE

Accessibility & contrast

On white

9.24
#5A25A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A25A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25A9
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25A9#FFFFFF#000000##FFFFFF
##5A25A91.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#434A66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a25a9;
/* rgb */ color: rgb(90, 37, 169);
/* oklch */ color: oklch(42.3% 0.193 294.9);
Tailwind
colors: {
  custom: {
    50: '#9166c4',
    500: '#5a25a9',
    950: '#000000',
  },
}
SCSS
$custom: #5a25a9;
$custom-light: #9166c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25a9",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 264.091,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42257,
    "c": 0.19317,
    "h": 294.9
  },
  "luminance": 0.06361
}

Semantic roles & 50–950 ramp

primary
#5A25A9
secondary
#9EC465
accent
#E741A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A25A9

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

Preview Lab → · Contrast checker → · Palette generator →

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