#5E33A2#5E33A2

#5E33A2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.170 H 296.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5E33A2
RGBrgb(94, 51, 162)
HSLhsl(263, 52%, 42%)
HSVhsv(263, 69%, 64%)
CMYKcmyk(42%, 68.5%, 0%, 36.5%)
CIE-LABlab(32.60, 43.54, -53.13)
CIE-LCHlch(32.60, 68.70, 309.33°)
OKLaboklab(43.81% 0.0756 -0.1517)
OKLCHoklch(43.81% 0.17 296.5)
XYZxyz(12.3198, 7.3557, 34.9461)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E33A2 #77A233
analogous
#3340A2 #5E33A2 #9633A2
triadic
#5E33A2 #A25E33 #33A25E
tetradic
#5E33A2 #A23340 #77A233 #33A296
square
#5E33A2 #A23340 #77A233 #33A296
split-complementary
#5E33A2 #A29633 #40A233
monochromatic
#281645 #432473 #5E33A2 #7B4CC7 #9D7AD5

Accessibility & contrast

On white

8.50
#5E33A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5E33A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E33A2
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E33A2#FFFFFF#000000##FFFFFF
##5E33A21.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e33a2;
/* rgb */ color: rgb(94, 51, 162);
/* oklch */ color: oklch(43.8% 0.170 296.5);
Tailwind
colors: {
  custom: {
    50: '#916ebe',
    500: '#5e33a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e33a2;
$custom-light: #916ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e33a2",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 263.243,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43807,
    "c": 0.16954,
    "h": 296.5
  },
  "luminance": 0.07356
}

Semantic roles & 50–950 ramp

primary
#5E33A2
secondary
#A1BE73
accent
#DC4CA4
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E33A2

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

Preview Lab → · Contrast checker → · Palette generator →

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