#5A26A8#5A26A8

#5A26A8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.191 H 295.0°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5A26A8
RGBrgb(90, 38, 168)
HSLhsl(264, 63%, 40%)
HSVhsv(264, 77%, 66%)
CMYKcmyk(46.4%, 77.4%, 0%, 34.1%)
CIE-LABlab(30.37, 50.80, -60.42)
CIE-LCHlch(30.37, 78.94, 310.06°)
OKLaboklab(42.27% 0.0807 -0.1732)
OKLCHoklch(42.27% 0.191 295)
XYZxyz(11.9755, 6.3867, 37.6400)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A26A8 #74A826
analogous
#2633A8 #5A26A8 #9B26A8
triadic
#5A26A8 #A85A26 #26A85A
tetradic
#5A26A8 #A82633 #74A826 #26A89B
square
#5A26A8 #A82633 #74A826 #26A89B
split-complementary
#5A26A8 #A89B26 #33A826
monochromatic
#250F44 #3F1B76 #5A26A8 #7639D2 #996BDE

Accessibility & contrast

On white

9.22
#5A26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5A26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A26A8
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A26A8#FFFFFF#000000##FFFFFF
##5A26A81.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#434A66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a26a8;
/* rgb */ color: rgb(90, 38, 168);
/* oklch */ color: oklch(42.3% 0.191 295.0);
Tailwind
colors: {
  custom: {
    50: '#9066c3',
    500: '#5a26a8',
    950: '#000000',
  },
}
SCSS
$custom: #5a26a8;
$custom-light: #9066c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a26a8",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 264,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42273,
    "c": 0.19109,
    "h": 295
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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