#5A269F#5A269F

#5A269F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.181 H 297.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5A269F
RGBrgb(90, 38, 159)
HSLhsl(266, 61%, 39%)
HSVhsv(266, 76%, 62%)
CMYKcmyk(43.4%, 76.1%, 0%, 37.6%)
CIE-LABlab(29.57, 48.46, -56.28)
CIE-LCHlch(29.57, 74.27, 310.73°)
OKLaboklab(41.47% 0.0831 -0.1611)
OKLCHoklch(41.47% 0.181 297.3)
XYZxyz(11.1659, 6.0629, 33.3761)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A269F #6B9F26
analogous
#262E9F #5A269F #96269F
triadic
#5A269F #9F5A26 #269F5A
tetradic
#5A269F #9F262E #6B9F26 #269F96
square
#5A269F #9F262E #6B9F26 #269F96
split-complementary
#5A269F #9F9626 #2E9F26
monochromatic
#220E3C #3E1A6E #5A269F #7634CE #9765DA

Accessibility & contrast

On white

9.49
#5A269F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A269F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A269F
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A269F#FFFFFF#000000##FFFFFF
##5A269F1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a269f;
/* rgb */ color: rgb(90, 38, 159);
/* oklch */ color: oklch(41.5% 0.181 297.3);
Tailwind
colors: {
  custom: {
    50: '#8f66bc',
    500: '#5a269f',
    950: '#000000',
  },
}
SCSS
$custom: #5a269f;
$custom-light: #8f66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a269f",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 159
  },
  "hsl": {
    "h": 265.785,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41469,
    "c": 0.18124,
    "h": 297.3
  },
  "luminance": 0.06063
}

Semantic roles & 50–950 ramp

primary
#5A269F
secondary
#97C061
accent
#E5439F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A269F

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

Preview Lab → · Contrast checker → · Palette generator →

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