#5E26C7#5E26C7

#5E26C7 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.6% C 0.224 H 290.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5E26C7
RGBrgb(94, 38, 199)
HSLhsl(261, 68%, 46%)
HSVhsv(261, 81%, 78%)
CMYKcmyk(52.8%, 80.9%, 0%, 22%)
CIE-LABlab(33.75, 59.41, -73.24)
CIE-LCHlch(33.75, 94.30, 309.05°)
OKLaboklab(45.61% 0.0772 -0.2106)
OKLCHoklch(45.61% 0.224 290.1)
XYZxyz(15.6150, 7.8887, 54.7217)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E26C7 #8FC726
analogous
#263EC7 #5E26C7 #AF26C7
triadic
#5E26C7 #C75E26 #26C75E
tetradic
#5E26C7 #C7263E #8FC726 #26C7AF
square
#5E26C7 #C7263E #8FC726 #26C7AF
split-complementary
#5E26C7 #C7AF26 #3EC726
monochromatic
#2D1260 #461C94 #5E26C7 #7F4DDD #A481E7

Accessibility & contrast

On white

8.15
#5E26C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5E26C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E26C7
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E26C7#FFFFFF#000000##FFFFFF
##5E26C71.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e26c7;
/* rgb */ color: rgb(94, 38, 199);
/* oklch */ color: oklch(45.6% 0.224 290.1);
Tailwind
colors: {
  custom: {
    50: '#9769d9',
    500: '#5e26c7',
    950: '#000000',
  },
}
SCSS
$custom: #5e26c7;
$custom-light: #9769d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e26c7",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 260.87,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45613,
    "c": 0.22429,
    "h": 290.1
  },
  "luminance": 0.07889
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E26C7

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

Preview Lab → · Contrast checker → · Palette generator →

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