#5A26A7#5A26A7

#5A26A7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.190 H 295.2°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5A26A7
RGBrgb(90, 38, 167)
HSLhsl(264, 63%, 40%)
HSVhsv(264, 77%, 65%)
CMYKcmyk(46.1%, 77.2%, 0%, 34.5%)
CIE-LABlab(30.28, 50.54, -59.97)
CIE-LCHlch(30.28, 78.42, 310.12°)
OKLaboklab(42.18% 0.081 -0.1719)
OKLCHoklch(42.18% 0.19 295.2)
XYZxyz(11.8827, 6.3496, 37.1512)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A26A7 #73A726
analogous
#2632A7 #5A26A7 #9A26A7
triadic
#5A26A7 #A75A26 #26A75A
tetradic
#5A26A7 #A72632 #73A726 #26A79A
square
#5A26A7 #A72632 #73A726 #26A79A
split-complementary
#5A26A7 #A79A26 #32A726
monochromatic
#240F43 #3F1B75 #5A26A7 #7638D2 #996ADD

Accessibility & contrast

On white

9.25
#5A26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A26A7
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A26A7#FFFFFF#000000##FFFFFF
##5A26A71.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#444965
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a26a7;
/* rgb */ color: rgb(90, 38, 167);
/* oklch */ color: oklch(42.2% 0.190 295.2);
Tailwind
colors: {
  custom: {
    50: '#9066c2',
    500: '#5a26a7',
    950: '#000000',
  },
}
SCSS
$custom: #5a26a7;
$custom-light: #9066c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a26a7",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 264.186,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42182,
    "c": 0.19,
    "h": 295.2
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#5A26A7
secondary
#9DC365
accent
#E642A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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