#5A26B0#5A26B0

#5A26B0 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.200 H 293.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5A26B0
RGBrgb(90, 38, 176)
HSLhsl(263, 64%, 42%)
HSVhsv(263, 78%, 69%)
CMYKcmyk(48.9%, 78.4%, 0%, 31%)
CIE-LABlab(31.10, 52.90, -64.02)
CIE-LCHlch(31.10, 83.04, 309.57°)
OKLaboklab(43.01% 0.0784 -0.1838)
OKLCHoklch(43.01% 0.2 293.1)
XYZxyz(12.7439, 6.6940, 41.6865)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A26B0 #7CB026
analogous
#2637B0 #5A26B0 #9F26B0
triadic
#5A26B0 #B05A26 #26B05A
tetradic
#5A26B0 #B02637 #7CB026 #26B09F
square
#5A26B0 #B02637 #7CB026 #26B09F
split-complementary
#5A26B0 #B09F26 #37B026
monochromatic
#27104B #401B7E #5A26B0 #773ED5 #9A70E0

Accessibility & contrast

On white

8.98
#5A26B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A26B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A26B0
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A26B0#FFFFFF#000000##FFFFFF
##5A26B01.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#3F4D6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a26b0;
/* rgb */ color: rgb(90, 38, 176);
/* oklch */ color: oklch(43.0% 0.200 293.1);
Tailwind
colors: {
  custom: {
    50: '#9267c9',
    500: '#5a26b0',
    950: '#000000',
  },
}
SCSS
$custom: #5a26b0;
$custom-light: #9267c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a26b0",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 262.609,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43008,
    "c": 0.19978,
    "h": 293.1
  },
  "luminance": 0.06694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A26B0

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

Preview Lab → · Contrast checker → · Palette generator →

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