#5A25AE#5A25AE

#5A25AE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.199 H 293.7°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5A25AE
RGBrgb(90, 37, 174)
HSLhsl(263, 65%, 41%)
HSVhsv(263, 79%, 68%)
CMYKcmyk(48.3%, 78.7%, 0%, 31.8%)
CIE-LABlab(30.77, 52.80, -63.37)
CIE-LCHlch(30.77, 82.49, 309.80°)
OKLaboklab(42.72% 0.0797 -0.1819)
OKLCHoklch(42.72% 0.199 293.7)
XYZxyz(12.5159, 6.5524, 40.6415)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25AE #79AE25
analogous
#2534AE #5A25AE #9F25AE
triadic
#5A25AE #AE5A25 #25AE5A
tetradic
#5A25AE #AE2534 #79AE25 #25AE9F
square
#5A25AE #AE2534 #79AE25 #25AE9F
split-complementary
#5A25AE #AE9F25 #34AE25
monochromatic
#261049 #401A7C #5A25AE #773BD5 #9A6DE0

Accessibility & contrast

On white

9.09
#5A25AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A25AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25AE
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25AE#FFFFFF#000000##FFFFFF
##5A25AE1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#404C69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a25ae;
/* rgb */ color: rgb(90, 37, 174);
/* oklch */ color: oklch(42.7% 0.199 293.7);
Tailwind
colors: {
  custom: {
    50: '#9166c7',
    500: '#5a25ae',
    950: '#000000',
  },
}
SCSS
$custom: #5a25ae;
$custom-light: #9166c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25ae",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 174
  },
  "hsl": {
    "h": 263.212,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42718,
    "c": 0.19856,
    "h": 293.7
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#5A25AE
secondary
#A2C668
accent
#E840A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A25AE

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

Preview Lab → · Contrast checker → · Palette generator →

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