#5A26C7#5A26C7

#5A26C7 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.224 H 288.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5A26C7
RGBrgb(90, 38, 199)
HSLhsl(259, 68%, 46%)
HSVhsv(259, 81%, 78%)
CMYKcmyk(54.8%, 80.9%, 0%, 22%)
CIE-LABlab(33.31, 58.93, -73.97)
CIE-LCHlch(33.31, 94.58, 308.54°)
OKLaboklab(45.21% 0.071 -0.2129)
OKLCHoklch(45.21% 0.224 288.5)
XYZxyz(15.2153, 7.6826, 54.7029)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A26C7 #93C726
analogous
#2643C7 #5A26C7 #AB26C7
triadic
#5A26C7 #C75A26 #26C75A
tetradic
#5A26C7 #C72643 #93C726 #26C7AB
square
#5A26C7 #C72643 #93C726 #26C7AB
split-complementary
#5A26C7 #C7AB26 #43C726
monochromatic
#2C1260 #431C94 #5A26C7 #7C4DDD #A281E7

Accessibility & contrast

On white

8.28
#5A26C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5A26C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A26C7
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A26C7#FFFFFF#000000##FFFFFF
##5A26C71.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CB
Deuteranopia (green-blind)
#004AC4
Tritanopia (blue-blind)
#2C5778
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a26c7;
/* rgb */ color: rgb(90, 38, 199);
/* oklch */ color: oklch(45.2% 0.224 288.5);
Tailwind
colors: {
  custom: {
    50: '#9568d9',
    500: '#5a26c7',
    950: '#000000',
  },
}
SCSS
$custom: #5a26c7;
$custom-light: #9568d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a26c7",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 259.379,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4521,
    "c": 0.2244,
    "h": 288.5
  },
  "luminance": 0.07683
}

Semantic roles & 50–950 ramp

primary
#5A26C7
secondary
#B4CF79
accent
#EB3DB3
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5A26C7

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

Preview Lab → · Contrast checker → · Palette generator →

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