#5D26A2#5D26A2

#5D26A2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.185 H 298.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5D26A2
RGBrgb(93, 38, 162)
HSLhsl(267, 62%, 39%)
HSVhsv(267, 77%, 64%)
CMYKcmyk(42.6%, 76.5%, 0%, 36.5%)
CIE-LABlab(30.21, 49.74, -57.04)
CIE-LCHlch(30.21, 75.68, 311.09°)
OKLaboklab(42.08% 0.0869 -0.1632)
OKLCHoklch(42.08% 0.185 298)
XYZxyz(11.7272, 6.3218, 34.7778)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D26A2 #6BA226
analogous
#262DA2 #5D26A2 #9B26A2
triadic
#5D26A2 #A25D26 #26A25D
tetradic
#5D26A2 #A2262D #6BA226 #26A29B
square
#5D26A2 #A2262D #6BA226 #26A29B
split-complementary
#5D26A2 #A29B26 #2DA226
monochromatic
#240F3F #411A70 #5D26A2 #7A35D0 #9B67DB

Accessibility & contrast

On white

9.27
#5D26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5D26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D26A2
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D26A2#FFFFFF#000000##FFFFFF
##5D26A21.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#4C4763
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d26a2;
/* rgb */ color: rgb(93, 38, 162);
/* oklch */ color: oklch(42.1% 0.185 298.0);
Tailwind
colors: {
  custom: {
    50: '#9266bf',
    500: '#5d26a2',
    950: '#000000',
  },
}
SCSS
$custom: #5d26a2;
$custom-light: #9266bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d26a2",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 266.613,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42082,
    "c": 0.18487,
    "h": 298
  },
  "luminance": 0.06322
}

Semantic roles & 50–950 ramp

primary
#5D26A2
secondary
#97C163
accent
#E5439D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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