#5D26C7#5D26C7

#5D26C7 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.5% C 0.224 H 289.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5D26C7
RGBrgb(93, 38, 199)
HSLhsl(260, 68%, 46%)
HSVhsv(260, 81%, 78%)
CMYKcmyk(53.3%, 80.9%, 0%, 22%)
CIE-LABlab(33.64, 59.28, -73.42)
CIE-LCHlch(33.64, 94.37, 308.92°)
OKLaboklab(45.51% 0.0756 -0.2112)
OKLCHoklch(45.51% 0.224 289.7)
XYZxyz(15.5131, 7.8362, 54.7169)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D26C7 #90C726
analogous
#2640C7 #5D26C7 #AE26C7
triadic
#5D26C7 #C75D26 #26C75D
tetradic
#5D26C7 #C72640 #90C726 #26C7AE
square
#5D26C7 #C72640 #90C726 #26C7AE
split-complementary
#5D26C7 #C7AE26 #40C726
monochromatic
#2D1260 #451C94 #5D26C7 #7E4DDD #A381E7

Accessibility & contrast

On white

8.18
#5D26C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5D26C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D26C7
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D26C7#FFFFFF#000000##FFFFFF
##5D26C71.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CB
Deuteranopia (green-blind)
#004BC4
Tritanopia (blue-blind)
#345678
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d26c7;
/* rgb */ color: rgb(93, 38, 199);
/* oklch */ color: oklch(45.5% 0.224 289.7);
Tailwind
colors: {
  custom: {
    50: '#9668d9',
    500: '#5d26c7',
    950: '#000000',
  },
}
SCSS
$custom: #5d26c7;
$custom-light: #9668d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d26c7",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 260.497,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.22431,
    "h": 289.7
  },
  "luminance": 0.07837
}

Semantic roles & 50–950 ramp

primary
#5D26C7
secondary
#B2CF79
accent
#EB3DAF
background
#FAF6FD
surface
#F3EBFB
border
#CDC6D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5D26C7

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

Preview Lab → · Contrast checker → · Palette generator →

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