#5A25B0#5A25B0

#5A25B0 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.201 H 293.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5A25B0
RGBrgb(90, 37, 176)
HSLhsl(263, 65%, 42%)
HSVhsv(263, 79%, 69%)
CMYKcmyk(48.9%, 79%, 0%, 31%)
CIE-LABlab(30.95, 53.32, -64.26)
CIE-LCHlch(30.95, 83.50, 309.69°)
OKLaboklab(42.9% 0.0791 -0.1845)
OKLCHoklch(42.9% 0.201 293.2)
XYZxyz(12.7123, 6.6310, 41.6760)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25B0 #7BB025
analogous
#2535B0 #5A25B0 #A025B0
triadic
#5A25B0 #B05A25 #25B05A
tetradic
#5A25B0 #B02535 #7BB025 #25B0A0
square
#5A25B0 #B02535 #7BB025 #25B0A0
split-complementary
#5A25B0 #B0A025 #35B025
monochromatic
#26104B #401A7D #5A25B0 #773CD6 #9A6FE1

Accessibility & contrast

On white

9.03
#5A25B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A25B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25B0
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25B0#FFFFFF#000000##FFFFFF
##5A25B01.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#3F4D6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a25b0;
/* rgb */ color: rgb(90, 37, 176);
/* oklch */ color: oklch(42.9% 0.201 293.2);
Tailwind
colors: {
  custom: {
    50: '#9266c9',
    500: '#5a25b0',
    950: '#000000',
  },
}
SCSS
$custom: #5a25b0;
$custom-light: #9266c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25b0",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 176
  },
  "hsl": {
    "h": 262.878,
    "s": 65.258,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42904,
    "c": 0.20071,
    "h": 293.2
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#5A25B0
secondary
#A4C76A
accent
#E840A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A25B0

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

Preview Lab → · Contrast checker → · Palette generator →

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