#5D26A7#5D26A7

#5D26A7 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.190 H 296.7°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5D26A7
RGBrgb(93, 38, 167)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 77%, 65%)
CMYKcmyk(44.3%, 77.2%, 0%, 34.5%)
CIE-LABlab(30.65, 51.02, -59.35)
CIE-LCHlch(30.65, 78.26, 310.68°)
OKLaboklab(42.52% 0.0855 -0.1699)
OKLCHoklch(42.52% 0.19 296.7)
XYZxyz(12.1805, 6.5031, 37.1652)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D26A7 #70A726
analogous
#2630A7 #5D26A7 #9D26A7
triadic
#5D26A7 #A75D26 #26A75D
tetradic
#5D26A7 #A72630 #70A726 #26A79D
square
#5D26A7 #A72630 #70A726 #26A79D
split-complementary
#5D26A7 #A79D26 #30A726
monochromatic
#250F43 #411B75 #5D26A7 #7A38D2 #9B6ADD

Accessibility & contrast

On white

9.13
#5D26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5D26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D26A7
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D26A7#FFFFFF#000000##FFFFFF
##5D26A71.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#494965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d26a7;
/* rgb */ color: rgb(93, 38, 167);
/* oklch */ color: oklch(42.5% 0.190 296.7);
Tailwind
colors: {
  custom: {
    50: '#9267c2',
    500: '#5d26a7',
    950: '#000000',
  },
}
SCSS
$custom: #5d26a7;
$custom-light: #9267c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d26a7",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 265.581,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42524,
    "c": 0.19025,
    "h": 296.7
  },
  "luminance": 0.06503
}

Semantic roles & 50–950 ramp

primary
#5D26A7
secondary
#9BC365
accent
#E642A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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