#5A25A2#5A25A2

#5A25A2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.186 H 296.6°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5A25A2
RGBrgb(90, 37, 162)
HSLhsl(265, 63%, 39%)
HSVhsv(265, 77%, 64%)
CMYKcmyk(44.4%, 77.2%, 0%, 36.5%)
CIE-LABlab(29.68, 49.68, -57.93)
CIE-LCHlch(29.68, 76.32, 310.62°)
OKLaboklab(41.62% 0.0832 -0.1659)
OKLCHoklch(41.62% 0.186 296.6)
XYZxyz(11.3979, 6.1052, 34.7533)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25A2 #6DA225
analogous
#252FA2 #5A25A2 #9925A2
triadic
#5A25A2 #A25A25 #25A25A
tetradic
#5A25A2 #A2252F #6DA225 #25A299
square
#5A25A2 #A2252F #6DA225 #25A299
split-complementary
#5A25A2 #A29925 #2FA225
monochromatic
#230E3E #3E1A70 #5A25A2 #7634D1 #9865DC

Accessibility & contrast

On white

9.46
#5A25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5A25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25A2
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25A2#FFFFFF#000000##FFFFFF
##5A25A21.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#474762
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a25a2;
/* rgb */ color: rgb(90, 37, 162);
/* oklch */ color: oklch(41.6% 0.186 296.6);
Tailwind
colors: {
  custom: {
    50: '#9066bf',
    500: '#5a25a2',
    950: '#000000',
  },
}
SCSS
$custom: #5a25a2;
$custom-light: #9066bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25a2",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 265.44,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41624,
    "c": 0.18558,
    "h": 296.6
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#5A25A2
secondary
#99C261
accent
#E642A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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