#5A26AF#5A26AF

#5A26AF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.199 H 293.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5A26AF
RGBrgb(90, 38, 175)
HSLhsl(263, 64%, 42%)
HSVhsv(263, 78%, 69%)
CMYKcmyk(48.6%, 78.3%, 0%, 31.4%)
CIE-LABlab(31.01, 52.63, -63.57)
CIE-LCHlch(31.01, 82.53, 309.62°)
OKLaboklab(42.92% 0.0787 -0.1824)
OKLCHoklch(42.92% 0.199 293.3)
XYZxyz(12.6453, 6.6546, 41.1673)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A26AF #7BAF26
analogous
#2636AF #5A26AF #9F26AF
triadic
#5A26AF #AF5A26 #26AF5A
tetradic
#5A26AF #AF2636 #7BAF26 #26AF9F
square
#5A26AF #AF2636 #7BAF26 #26AF9F
split-complementary
#5A26AF #AF9F26 #36AF26
monochromatic
#26104A #401B7D #5A26AF #773DD5 #9A70E0

Accessibility & contrast

On white

9.01
#5A26AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A26AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A26AF
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A26AF#FFFFFF#000000##FFFFFF
##5A26AF1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#3F4D6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a26af;
/* rgb */ color: rgb(90, 38, 175);
/* oklch */ color: oklch(42.9% 0.199 293.3);
Tailwind
colors: {
  custom: {
    50: '#9167c8',
    500: '#5a26af',
    950: '#000000',
  },
}
SCSS
$custom: #5a26af;
$custom-light: #9167c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a26af",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 262.774,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42915,
    "c": 0.19869,
    "h": 293.3
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#5A26AF
secondary
#A4C76A
accent
#E740A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A26AF

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

Preview Lab → · Contrast checker → · Palette generator →

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