#5E35A2#5E35A2

#5E35A2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.167 H 296.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5E35A2
RGBrgb(94, 53, 162)
HSLhsl(263, 51%, 42%)
HSVhsv(263, 67%, 64%)
CMYKcmyk(42%, 67.3%, 0%, 36.5%)
CIE-LABlab(32.99, 42.47, -52.50)
CIE-LCHlch(32.99, 67.53, 308.97°)
OKLaboklab(44.09% 0.0735 -0.1499)
OKLCHoklch(44.09% 0.167 296.1)
XYZxyz(12.4091, 7.5343, 34.9759)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35A2 #79A235
analogous
#3542A2 #5E35A2 #9535A2
triadic
#5E35A2 #A25E35 #35A25E
tetradic
#5E35A2 #A23542 #79A235 #35A295
square
#5E35A2 #A23542 #79A235 #35A295
split-complementary
#5E35A2 #A29535 #42A235
monochromatic
#281746 #432674 #5E35A2 #7B4FC5 #9E7DD4

Accessibility & contrast

On white

8.38
#5E35A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5E35A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35A2
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35A2#FFFFFF#000000##FFFFFF
##5E35A21.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e35a2;
/* rgb */ color: rgb(94, 53, 162);
/* oklch */ color: oklch(44.1% 0.167 296.1);
Tailwind
colors: {
  custom: {
    50: '#916fbe',
    500: '#5e35a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e35a2;
$custom-light: #916fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35a2",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 262.569,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44087,
    "c": 0.16692,
    "h": 296.1
  },
  "luminance": 0.07535
}

Semantic roles & 50–950 ramp

primary
#5E35A2
secondary
#A2BD75
accent
#DA4EA5
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E35A2

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

Preview Lab → · Contrast checker → · Palette generator →

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