#5A269D#5A269D

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

Color values

HEX#5A269D
RGBrgb(90, 38, 157)
HSLhsl(266, 61%, 38%)
HSVhsv(266, 76%, 62%)
CMYKcmyk(42.7%, 75.8%, 0%, 38.4%)
CIE-LABlab(29.40, 47.94, -55.35)
CIE-LCHlch(29.40, 73.22, 310.90°)
OKLaboklab(41.29% 0.0836 -0.1583)
OKLCHoklch(41.29% 0.179 297.8)
XYZxyz(10.9938, 5.9940, 32.4695)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A269D #699D26
analogous
#262E9D #5A269D #95269D
triadic
#5A269D #9D5A26 #269D5A
tetradic
#5A269D #9D262E #699D26 #269D95
square
#5A269D #9D262E #699D26 #269D95
split-complementary
#5A269D #9D9526 #2E9D26
monochromatic
#220E3A #3E1A6C #5A269D #7633CE #9764D9

Accessibility & contrast

On white

9.55
#5A269D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A269D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A269D
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A269D#FFFFFF#000000##FFFFFF
##5A269D1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#494560
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a269d;
/* rgb */ color: rgb(90, 38, 157);
/* oklch */ color: oklch(41.3% 0.179 297.8);
Tailwind
colors: {
  custom: {
    50: '#8f66bb',
    500: '#5a269d',
    950: '#000000',
  },
}
SCSS
$custom: #5a269d;
$custom-light: #8f66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a269d",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 157
  },
  "hsl": {
    "h": 266.218,
    "s": 61.026,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41293,
    "c": 0.17905,
    "h": 297.8
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#5A269D
secondary
#95BF60
accent
#E4449E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A269D

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

Preview Lab → · Contrast checker → · Palette generator →

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