#5D26A6#5D26A6

#5D26A6 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.189 H 297.0°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5D26A6
RGBrgb(93, 38, 166)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 77%, 65%)
CMYKcmyk(44%, 77.1%, 0%, 34.9%)
CIE-LABlab(30.56, 50.76, -58.89)
CIE-LCHlch(30.56, 77.74, 310.76°)
OKLaboklab(42.44% 0.0858 -0.1686)
OKLCHoklch(42.44% 0.189 297)
XYZxyz(12.0884, 6.4663, 36.6802)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D26A6 #6FA626
analogous
#262FA6 #5D26A6 #9D26A6
triadic
#5D26A6 #A65D26 #26A65D
tetradic
#5D26A6 #A6262F #6FA626 #26A69D
square
#5D26A6 #A6262F #6FA626 #26A69D
split-complementary
#5D26A6 #A69D26 #2FA626
monochromatic
#250F42 #411B74 #5D26A6 #7A38D1 #9B6ADD

Accessibility & contrast

On white

9.16
#5D26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5D26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D26A6
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D26A6#FFFFFF#000000##FFFFFF
##5D26A61.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#4A4965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d26a6;
/* rgb */ color: rgb(93, 38, 166);
/* oklch */ color: oklch(42.4% 0.189 297.0);
Tailwind
colors: {
  custom: {
    50: '#9267c1',
    500: '#5d26a6',
    950: '#000000',
  },
}
SCSS
$custom: #5d26a6;
$custom-light: #9267c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d26a6",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 265.781,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.42435,
    "c": 0.18918,
    "h": 297
  },
  "luminance": 0.06467
}

Semantic roles & 50–950 ramp

primary
#5D26A6
secondary
#9BC365
accent
#E6429F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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