#5A269A#5A269A

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

Color values

HEX#5A269A
RGBrgb(90, 38, 154)
HSLhsl(267, 60%, 38%)
HSVhsv(267, 75%, 60%)
CMYKcmyk(41.6%, 75.3%, 0%, 39.6%)
CIE-LABlab(29.14, 47.16, -53.94)
CIE-LCHlch(29.14, 71.65, 311.17°)
OKLaboklab(41.03% 0.0844 -0.1542)
OKLCHoklch(41.03% 0.176 298.7)
XYZxyz(10.7408, 5.8928, 31.1371)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A269A #669A26
analogous
#262C9A #5A269A #94269A
triadic
#5A269A #9A5A26 #269A5A
tetradic
#5A269A #9A262C #669A26 #269A94
square
#5A269A #9A262C #669A26 #269A94
split-complementary
#5A269A #9A9426 #2C9A26
monochromatic
#210E38 #3D1A69 #5A269A #7732CB #9762D8

Accessibility & contrast

On white

9.64
#5A269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A269A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A269A
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A269A#FFFFFF#000000##FFFFFF
##5A269A1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#4A445E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a269a;
/* rgb */ color: rgb(90, 38, 154);
/* oklch */ color: oklch(41.0% 0.176 298.7);
Tailwind
colors: {
  custom: {
    50: '#8f66b9',
    500: '#5a269a',
    950: '#000000',
  },
}
SCSS
$custom: #5a269a;
$custom-light: #8f66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a269a",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 266.897,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41033,
    "c": 0.17575,
    "h": 298.7
  },
  "luminance": 0.05893
}

Semantic roles & 50–950 ramp

primary
#5A269A
secondary
#93BE5E
accent
#E4449C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A269A

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

Preview Lab → · Contrast checker → · Palette generator →

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