#5E35A3#5E35A3

#5E35A3 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.2% C 0.168 H 295.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5E35A3
RGBrgb(94, 53, 163)
HSLhsl(262, 51%, 42%)
HSVhsv(262, 67%, 64%)
CMYKcmyk(42.3%, 67.5%, 0%, 36.1%)
CIE-LABlab(33.07, 42.75, -52.98)
CIE-LCHlch(33.07, 68.07, 308.90°)
OKLaboklab(44.17% 0.0733 -0.1513)
OKLCHoklch(44.17% 0.168 295.9)
XYZxyz(12.4983, 7.5700, 35.4459)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35A3 #7AA335
analogous
#3543A3 #5E35A3 #9535A3
triadic
#5E35A3 #A35E35 #35A35E
tetradic
#5E35A3 #A33543 #7AA335 #35A395
square
#5E35A3 #A33543 #7AA335 #35A395
split-complementary
#5E35A3 #A39535 #43A335
monochromatic
#291747 #432675 #5E35A3 #7C4FC6 #9E7ED5

Accessibility & contrast

On white

8.35
#5E35A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E35A3
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35A3#FFFFFF#000000##FFFFFF
##5E35A31.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e35a3;
/* rgb */ color: rgb(94, 53, 163);
/* oklch */ color: oklch(44.2% 0.168 295.9);
Tailwind
colors: {
  custom: {
    50: '#916fbf',
    500: '#5e35a3',
    950: '#000000',
  },
}
SCSS
$custom: #5e35a3;
$custom-light: #916fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35a3",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 163
  },
  "hsl": {
    "h": 262.364,
    "s": 50.926,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44167,
    "c": 0.16812,
    "h": 295.9
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#5E35A3
secondary
#A3BE76
accent
#DA4DA6
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E35A3

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

Preview Lab → · Contrast checker → · Palette generator →

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