#5A25A0#5A25A0

#5A25A0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.183 H 297.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5A25A0
RGBrgb(90, 37, 160)
HSLhsl(266, 62%, 39%)
HSVhsv(266, 77%, 63%)
CMYKcmyk(43.7%, 76.9%, 0%, 37.3%)
CIE-LABlab(29.50, 49.17, -57.01)
CIE-LCHlch(29.50, 75.28, 310.78°)
OKLaboklab(41.45% 0.0837 -0.1632)
OKLCHoklch(41.45% 0.183 297.2)
XYZxyz(11.2215, 6.0346, 33.8245)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25A0 #6BA025
analogous
#252DA0 #5A25A0 #9725A0
triadic
#5A25A0 #A05A25 #25A05A
tetradic
#5A25A0 #A0252D #6BA025 #25A097
square
#5A25A0 #A0252D #6BA025 #25A097
split-complementary
#5A25A0 #A09725 #2DA025
monochromatic
#220E3D #3E1A6E #5A25A0 #7632D0 #9764DB

Accessibility & contrast

On white

9.52
#5A25A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A25A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25A0
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25A0#FFFFFF#000000##FFFFFF
##5A25A01.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#484661
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a25a0;
/* rgb */ color: rgb(90, 37, 160);
/* oklch */ color: oklch(41.4% 0.183 297.2);
Tailwind
colors: {
  custom: {
    50: '#9065bd',
    500: '#5a25a0',
    950: '#000000',
  },
}
SCSS
$custom: #5a25a0;
$custom-light: #9065bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25a0",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 160
  },
  "hsl": {
    "h": 265.854,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41446,
    "c": 0.18341,
    "h": 297.2
  },
  "luminance": 0.06035
}

Semantic roles & 50–950 ramp

primary
#5A25A0
secondary
#97C160
accent
#E6429F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A25A0

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

Preview Lab → · Contrast checker → · Palette generator →

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