#5A259D#5A259D

#5A259D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.180 H 298.0°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5A259D
RGBrgb(90, 37, 157)
HSLhsl(267, 62%, 38%)
HSVhsv(267, 76%, 62%)
CMYKcmyk(42.7%, 76.4%, 0%, 38.4%)
CIE-LABlab(29.24, 48.39, -55.61)
CIE-LCHlch(29.24, 73.72, 311.03°)
OKLaboklab(41.18% 0.0845 -0.1591)
OKLCHoklch(41.18% 0.18 298)
XYZxyz(10.9622, 5.9309, 32.4590)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A259D #689D25
analogous
#252C9D #5A259D #96259D
triadic
#5A259D #9D5A25 #259D5A
tetradic
#5A259D #9D252C #689D25 #259D96
square
#5A259D #9D252C #689D25 #259D96
split-complementary
#5A259D #9D9625 #2C9D25
monochromatic
#210E3A #3E196B #5A259D #7631CE #9762DA

Accessibility & contrast

On white

9.61
#5A259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A259D
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A259D#FFFFFF#000000##FFFFFF
##5A259D1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#494560
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a259d;
/* rgb */ color: rgb(90, 37, 157);
/* oklch */ color: oklch(41.2% 0.180 298.0);
Tailwind
colors: {
  custom: {
    50: '#8f65bb',
    500: '#5a259d',
    950: '#000000',
  },
}
SCSS
$custom: #5a259d;
$custom-light: #8f65bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a259d",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 266.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41181,
    "c": 0.18013,
    "h": 298
  },
  "luminance": 0.05931
}

Semantic roles & 50–950 ramp

primary
#5A259D
secondary
#95BF5E
accent
#E5439D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A259D

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

Preview Lab → · Contrast checker → · Palette generator →

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