#5A25A5#5A25A5

#5A25A5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.189 H 295.9°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5A25A5
RGBrgb(90, 37, 165)
HSLhsl(265, 63%, 40%)
HSVhsv(265, 78%, 65%)
CMYKcmyk(45.5%, 77.6%, 0%, 35.3%)
CIE-LABlab(29.94, 50.46, -59.31)
CIE-LCHlch(29.94, 77.87, 310.39°)
OKLaboklab(41.89% 0.0824 -0.1699)
OKLCHoklch(41.89% 0.189 295.9)
XYZxyz(11.6677, 6.2131, 36.1745)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25A5 #70A525
analogous
#2530A5 #5A25A5 #9A25A5
triadic
#5A25A5 #A55A25 #25A55A
tetradic
#5A25A5 #A52530 #70A525 #25A59A
square
#5A25A5 #A52530 #70A525 #25A59A
split-complementary
#5A25A5 #A59A25 #30A525
monochromatic
#230F41 #3F1A73 #5A25A5 #7635D2 #9867DD

Accessibility & contrast

On white

9.36
#5A25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A25A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25A5
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25A5#FFFFFF#000000##FFFFFF
##5A25A51.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#454864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a25a5;
/* rgb */ color: rgb(90, 37, 165);
/* oklch */ color: oklch(41.9% 0.189 295.9);
Tailwind
colors: {
  custom: {
    50: '#9066c1',
    500: '#5a25a5',
    950: '#000000',
  },
}
SCSS
$custom: #5a25a5;
$custom-light: #9066c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25a5",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 264.844,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41894,
    "c": 0.18884,
    "h": 295.9
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#5A25A5
secondary
#9BC363
accent
#E641A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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