#5E35AB#5E35AB

#5E35AB is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.178 H 294.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5E35AB
RGBrgb(94, 53, 171)
HSLhsl(261, 53%, 44%)
HSVhsv(261, 69%, 67%)
CMYKcmyk(45%, 69%, 0%, 32.9%)
CIE-LABlab(33.70, 44.95, -56.76)
CIE-LCHlch(33.70, 72.40, 308.38°)
OKLaboklab(44.82% 0.0721 -0.1624)
OKLCHoklch(44.82% 0.178 294)
XYZxyz(13.2379, 7.8658, 39.3410)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35AB #82AB35
analogous
#3547AB #5E35AB #9935AB
triadic
#5E35AB #AB5E35 #35AB5E
tetradic
#5E35AB #AB3547 #82AB35 #35AB99
square
#5E35AB #AB3547 #82AB35 #35AB99
split-complementary
#5E35AB #AB9935 #47AB35
monochromatic
#2B184E #44277C #5E35AB #7D53CA #A082D8

Accessibility & contrast

On white

8.16
#5E35AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5E35AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35AB
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35AB#FFFFFF#000000##FFFFFF
##5E35AB1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#48526C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e35ab;
/* rgb */ color: rgb(94, 53, 171);
/* oklch */ color: oklch(44.8% 0.178 294.0);
Tailwind
colors: {
  custom: {
    50: '#926fc5',
    500: '#5e35ab',
    950: '#000000',
  },
}
SCSS
$custom: #5e35ab;
$custom-light: #926fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35ab",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 260.847,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44817,
    "c": 0.1777,
    "h": 294
  },
  "luminance": 0.07866
}

Semantic roles & 50–950 ramp

primary
#5E35AB
secondary
#A9C27A
accent
#DC4CAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E35AB

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

Preview Lab → · Contrast checker → · Palette generator →

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