#5A259B#5A259B

#5A259B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.178 H 298.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5A259B
RGBrgb(90, 37, 155)
HSLhsl(267, 61%, 38%)
HSVhsv(267, 76%, 61%)
CMYKcmyk(41.9%, 76.1%, 0%, 39.2%)
CIE-LABlab(29.06, 47.88, -54.67)
CIE-LCHlch(29.06, 72.67, 311.21°)
OKLaboklab(41.01% 0.085 -0.1563)
OKLCHoklch(41.01% 0.178 298.5)
XYZxyz(10.7929, 5.8632, 31.5671)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A259B #669B25
analogous
#252B9B #5A259B #95259B
triadic
#5A259B #9B5A25 #259B5A
tetradic
#5A259B #9B252B #669B25 #259B95
square
#5A259B #9B252B #669B25 #259B95
split-complementary
#5A259B #9B9525 #2B9B25
monochromatic
#210D38 #3D196A #5A259B #7731CC #9761D9

Accessibility & contrast

On white

9.67
#5A259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A259B
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A259B#FFFFFF#000000##FFFFFF
##5A259B1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4A445E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a259b;
/* rgb */ color: rgb(90, 37, 155);
/* oklch */ color: oklch(41.0% 0.178 298.5);
Tailwind
colors: {
  custom: {
    50: '#8f65b9',
    500: '#5a259b',
    950: '#000000',
  },
}
SCSS
$custom: #5a259b;
$custom-light: #8f65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a259b",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 266.949,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41006,
    "c": 0.17795,
    "h": 298.5
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#5A259B
secondary
#93BF5D
accent
#E5439C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A259B

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

Preview Lab → · Contrast checker → · Palette generator →

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