#5E2698#5E2698

#5E2698 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.174 H 301.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5E2698
RGBrgb(94, 38, 152)
HSLhsl(269, 60%, 37%)
HSVhsv(269, 75%, 60%)
CMYKcmyk(38.2%, 75%, 0%, 40.4%)
CIE-LABlab(29.50, 47.38, -52.11)
CIE-LCHlch(29.50, 70.43, 312.28°)
OKLaboklab(41.35% 0.0908 -0.1487)
OKLCHoklch(41.35% 0.174 301.4)
XYZxyz(10.9753, 6.0328, 30.2859)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2698 #609826
analogous
#262798 #5E2698 #972698
triadic
#5E2698 #985E26 #26985E
tetradic
#5E2698 #982627 #609826 #269897
square
#5E2698 #982627 #609826 #269897
split-complementary
#5E2698 #989726 #279826
monochromatic
#210E36 #401A67 #5E2698 #7C32C9 #9B61D7

Accessibility & contrast

On white

9.52
#5E2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5E2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2698
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2698#FFFFFF#000000##FFFFFF
##5E26981.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#51435D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2698;
/* rgb */ color: rgb(94, 38, 152);
/* oklch */ color: oklch(41.3% 0.174 301.4);
Tailwind
colors: {
  custom: {
    50: '#9166b7',
    500: '#5e2698',
    950: '#000000',
  },
}
SCSS
$custom: #5e2698;
$custom-light: #9166b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2698",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 269.474,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41346,
    "c": 0.17419,
    "h": 301.4
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#5E2698
secondary
#8EBD5D
accent
#E34595
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2698

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

Preview Lab → · Contrast checker → · Palette generator →

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