#5A269E#5A269E

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

Color values

HEX#5A269E
RGBrgb(90, 38, 158)
HSLhsl(266, 61%, 38%)
HSVhsv(266, 76%, 62%)
CMYKcmyk(43%, 75.9%, 0%, 38%)
CIE-LABlab(29.48, 48.20, -55.82)
CIE-LCHlch(29.48, 73.74, 310.81°)
OKLaboklab(41.38% 0.0834 -0.1597)
OKLCHoklch(41.38% 0.18 297.6)
XYZxyz(11.0795, 6.0283, 32.9210)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A269E #6A9E26
analogous
#262E9E #5A269E #96269E
triadic
#5A269E #9E5A26 #269E5A
tetradic
#5A269E #9E262E #6A9E26 #269E96
square
#5A269E #9E262E #6A9E26 #269E96
split-complementary
#5A269E #9E9626 #2E9E26
monochromatic
#220E3B #3E1A6D #5A269E #7633CE #9765DA

Accessibility & contrast

On white

9.52
#5A269E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A269E
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A269E#FFFFFF#000000##FFFFFF
##5A269E1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a269e;
/* rgb */ color: rgb(90, 38, 158);
/* oklch */ color: oklch(41.4% 0.180 297.6);
Tailwind
colors: {
  custom: {
    50: '#8f66bc',
    500: '#5a269e',
    950: '#000000',
  },
}
SCSS
$custom: #5a269e;
$custom-light: #8f66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a269e",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 266,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41381,
    "c": 0.18015,
    "h": 297.6
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

primary
#5A269E
secondary
#96C060
accent
#E4439F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A269E

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

Preview Lab → · Contrast checker → · Palette generator →

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