#5A259E#5A259E

#5A259E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.181 H 297.7°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5A259E
RGBrgb(90, 37, 158)
HSLhsl(266, 62%, 38%)
HSVhsv(266, 77%, 62%)
CMYKcmyk(43%, 76.6%, 0%, 38%)
CIE-LABlab(29.32, 48.65, -56.08)
CIE-LCHlch(29.32, 74.24, 310.95°)
OKLaboklab(41.27% 0.0843 -0.1604)
OKLCHoklch(41.27% 0.181 297.7)
XYZxyz(11.0480, 5.9652, 32.9104)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A259E #699E25
analogous
#252C9E #5A259E #96259E
triadic
#5A259E #9E5A25 #259E5A
tetradic
#5A259E #9E252C #699E25 #259E96
square
#5A259E #9E252C #699E25 #259E96
split-complementary
#5A259E #9E9625 #2C9E25
monochromatic
#220E3B #3E196C #5A259E #7631CF #9763DA

Accessibility & contrast

On white

9.58
#5A259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A259E
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A259E#FFFFFF#000000##FFFFFF
##5A259E1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a259e;
/* rgb */ color: rgb(90, 37, 158);
/* oklch */ color: oklch(41.3% 0.181 297.7);
Tailwind
colors: {
  custom: {
    50: '#8f65bc',
    500: '#5a259e',
    950: '#000000',
  },
}
SCSS
$custom: #5a259e;
$custom-light: #8f65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a259e",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 266.281,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41269,
    "c": 0.18123,
    "h": 297.7
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#5A259E
secondary
#95C05F
accent
#E5439E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A259E

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

Preview Lab → · Contrast checker → · Palette generator →

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