#5D26A3#5D26A3

#5D26A3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.186 H 297.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5D26A3
RGBrgb(93, 38, 163)
HSLhsl(266, 62%, 39%)
HSVhsv(266, 77%, 64%)
CMYKcmyk(42.9%, 76.7%, 0%, 36.1%)
CIE-LABlab(30.30, 49.99, -57.50)
CIE-LCHlch(30.30, 76.20, 311.00°)
OKLaboklab(42.17% 0.0866 -0.1645)
OKLCHoklch(42.17% 0.186 297.8)
XYZxyz(11.8165, 6.3575, 35.2478)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D26A3 #6CA326
analogous
#262EA3 #5D26A3 #9C26A3
triadic
#5D26A3 #A35D26 #26A35D
tetradic
#5D26A3 #A3262E #6CA326 #26A39C
square
#5D26A3 #A3262E #6CA326 #26A39C
split-complementary
#5D26A3 #A39C26 #2EA326
monochromatic
#240F40 #411A71 #5D26A3 #7A36D0 #9B68DC

Accessibility & contrast

On white

9.24
#5D26A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5D26A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D26A3
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D26A3#FFFFFF#000000##FFFFFF
##5D26A31.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A7
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#4B4763
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d26a3;
/* rgb */ color: rgb(93, 38, 163);
/* oklch */ color: oklch(42.2% 0.186 297.8);
Tailwind
colors: {
  custom: {
    50: '#9266bf',
    500: '#5d26a3',
    950: '#000000',
  },
}
SCSS
$custom: #5d26a3;
$custom-light: #9266bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d26a3",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 266.4,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4217,
    "c": 0.18595,
    "h": 297.8
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#5D26A3
secondary
#98C263
accent
#E5439E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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