#5A25A7#5A25A7

#5A25A7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.191 H 295.4°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5A25A7
RGBrgb(90, 37, 167)
HSLhsl(264, 64%, 40%)
HSVhsv(264, 78%, 65%)
CMYKcmyk(46.1%, 77.8%, 0%, 34.5%)
CIE-LABlab(30.12, 50.98, -60.22)
CIE-LCHlch(30.12, 78.90, 310.25°)
OKLaboklab(42.08% 0.0818 -0.1726)
OKLCHoklch(42.08% 0.191 295.4)
XYZxyz(11.8512, 6.2865, 37.1407)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25A7 #72A725
analogous
#2531A7 #5A25A7 #9B25A7
triadic
#5A25A7 #A75A25 #25A75A
tetradic
#5A25A7 #A72531 #72A725 #25A79B
square
#5A25A7 #A72531 #72A725 #25A79B
split-complementary
#5A25A7 #A79B25 #31A725
monochromatic
#240F43 #3F1A75 #5A25A7 #7637D3 #9869DE

Accessibility & contrast

On white

9.30
#5A25A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A25A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25A7
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25A7#FFFFFF#000000##FFFFFF
##5A25A71.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#444965
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a25a7;
/* rgb */ color: rgb(90, 37, 167);
/* oklch */ color: oklch(42.1% 0.191 295.4);
Tailwind
colors: {
  custom: {
    50: '#9066c2',
    500: '#5a25a7',
    950: '#000000',
  },
}
SCSS
$custom: #5a25a7;
$custom-light: #9066c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25a7",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 264.462,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.42075,
    "c": 0.19101,
    "h": 295.4
  },
  "luminance": 0.06287
}

Semantic roles & 50–950 ramp

primary
#5A25A7
secondary
#9DC464
accent
#E741A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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