#5A26A2#5A26A2

#5A26A2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.185 H 296.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5A26A2
RGBrgb(90, 38, 162)
HSLhsl(265, 62%, 39%)
HSVhsv(265, 77%, 64%)
CMYKcmyk(44.4%, 76.5%, 0%, 36.5%)
CIE-LABlab(29.83, 49.24, -57.67)
CIE-LCHlch(29.83, 75.83, 310.49°)
OKLaboklab(41.73% 0.0823 -0.1651)
OKLCHoklch(41.73% 0.185 296.5)
XYZxyz(11.4294, 6.1683, 34.7638)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A26A2 #6EA226
analogous
#2630A2 #5A26A2 #9826A2
triadic
#5A26A2 #A25A26 #26A25A
tetradic
#5A26A2 #A22630 #6EA226 #26A298
square
#5A26A2 #A22630 #6EA226 #26A298
split-complementary
#5A26A2 #A29826 #30A226
monochromatic
#230F3F #3E1A70 #5A26A2 #7635D0 #9867DB

Accessibility & contrast

On white

9.40
#5A26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A26A2
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A26A2#FFFFFF#000000##FFFFFF
##5A26A21.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#474763
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a26a2;
/* rgb */ color: rgb(90, 38, 162);
/* oklch */ color: oklch(41.7% 0.185 296.5);
Tailwind
colors: {
  custom: {
    50: '#9066bf',
    500: '#5a26a2',
    950: '#000000',
  },
}
SCSS
$custom: #5a26a2;
$custom-light: #9066bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a26a2",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 265.161,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41734,
    "c": 0.18454,
    "h": 296.5
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#5A26A2
secondary
#9AC163
accent
#E543A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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