#5A259F#5A259F

#5A259F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.182 H 297.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5A259F
RGBrgb(90, 37, 159)
HSLhsl(266, 62%, 38%)
HSVhsv(266, 77%, 62%)
CMYKcmyk(43.4%, 76.7%, 0%, 37.6%)
CIE-LABlab(29.41, 48.91, -56.54)
CIE-LCHlch(29.41, 74.76, 310.86°)
OKLaboklab(41.36% 0.084 -0.1618)
OKLCHoklch(41.36% 0.182 297.4)
XYZxyz(11.1344, 5.9998, 33.3656)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A259F #6A9F25
analogous
#252D9F #5A259F #97259F
triadic
#5A259F #9F5A25 #259F5A
tetradic
#5A259F #9F252D #6A9F25 #259F97
square
#5A259F #9F252D #6A9F25 #259F97
split-complementary
#5A259F #9F9725 #2D9F25
monochromatic
#220E3C #3E196D #5A259F #7632CF #9764DB

Accessibility & contrast

On white

9.55
#5A259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A259F
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A259F#FFFFFF#000000##FFFFFF
##5A259F1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#484661
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a259f;
/* rgb */ color: rgb(90, 37, 159);
/* oklch */ color: oklch(41.4% 0.182 297.4);
Tailwind
colors: {
  custom: {
    50: '#8f65bc',
    500: '#5a259f',
    950: '#000000',
  },
}
SCSS
$custom: #5a259f;
$custom-light: #8f65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a259f",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 266.066,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41357,
    "c": 0.18232,
    "h": 297.4
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#5A259F
secondary
#96C05F
accent
#E5429F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A259F

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

Preview Lab → · Contrast checker → · Palette generator →

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