#5E34A2#5E34A2

#5E34A2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.168 H 296.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5E34A2
RGBrgb(94, 52, 162)
HSLhsl(263, 51%, 42%)
HSVhsv(263, 68%, 64%)
CMYKcmyk(42%, 67.9%, 0%, 36.5%)
CIE-LABlab(32.80, 43.01, -52.82)
CIE-LCHlch(32.80, 68.12, 309.16°)
OKLaboklab(43.95% 0.0746 -0.1508)
OKLCHoklch(43.95% 0.168 296.3)
XYZxyz(12.3640, 7.4440, 34.9608)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34A2 #78A234
analogous
#3441A2 #5E34A2 #9534A2
triadic
#5E34A2 #A25E34 #34A25E
tetradic
#5E34A2 #A23441 #78A234 #34A295
square
#5E34A2 #A23441 #78A234 #34A295
split-complementary
#5E34A2 #A29534 #41A234
monochromatic
#281645 #432574 #5E34A2 #7B4DC6 #9E7CD5

Accessibility & contrast

On white

8.44
#5E34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5E34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34A2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34A2#FFFFFF#000000##FFFFFF
##5E34A21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#4D4E66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e34a2;
/* rgb */ color: rgb(94, 52, 162);
/* oklch */ color: oklch(43.9% 0.168 296.3);
Tailwind
colors: {
  custom: {
    50: '#916ebe',
    500: '#5e34a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e34a2;
$custom-light: #916ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34a2",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 262.909,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43946,
    "c": 0.16824,
    "h": 296.3
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#5E34A2
secondary
#A2BE74
accent
#DB4DA5
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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