#5A26A5#5A26A5

#5A26A5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.188 H 295.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5A26A5
RGBrgb(90, 38, 165)
HSLhsl(265, 63%, 40%)
HSVhsv(265, 77%, 65%)
CMYKcmyk(45.5%, 77%, 0%, 35.3%)
CIE-LABlab(30.10, 50.02, -59.05)
CIE-LCHlch(30.10, 77.39, 310.26°)
OKLaboklab(42% 0.0815 -0.1692)
OKLCHoklch(42% 0.188 295.7)
XYZxyz(11.6993, 6.2762, 36.1850)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A26A5 #71A526
analogous
#2631A5 #5A26A5 #9A26A5
triadic
#5A26A5 #A55A26 #26A55A
tetradic
#5A26A5 #A52631 #71A526 #26A59A
square
#5A26A5 #A52631 #71A526 #26A59A
split-complementary
#5A26A5 #A59A26 #31A526
monochromatic
#240F42 #3F1B73 #5A26A5 #7637D1 #9869DC

Accessibility & contrast

On white

9.31
#5A26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A26A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A26A5
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A26A5#FFFFFF#000000##FFFFFF
##5A26A51.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#454864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a26a5;
/* rgb */ color: rgb(90, 38, 165);
/* oklch */ color: oklch(42.0% 0.188 295.7);
Tailwind
colors: {
  custom: {
    50: '#9066c1',
    500: '#5a26a5',
    950: '#000000',
  },
}
SCSS
$custom: #5a26a5;
$custom-light: #9066c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a26a5",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 264.567,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42002,
    "c": 0.18782,
    "h": 295.7
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#5A26A5
secondary
#9CC364
accent
#E642A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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