#5D35B3#5D35B3

#5D35B3 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.187 H 291.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5D35B3
RGBrgb(93, 53, 179)
HSLhsl(259, 54%, 45%)
HSVhsv(259, 70%, 70%)
CMYKcmyk(48%, 70.4%, 0%, 29.8%)
CIE-LABlab(34.25, 46.98, -60.64)
CIE-LCHlch(34.25, 76.71, 307.77°)
OKLaboklab(45.39% 0.0693 -0.1738)
OKLCHoklch(45.39% 0.187 291.7)
XYZxyz(13.9217, 8.1275, 43.4743)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35B3 #8BB335
analogous
#354CB3 #5D35B3 #9C35B3
triadic
#5D35B3 #B35D35 #35B35D
tetradic
#5D35B3 #B3354C #8BB335 #35B39C
square
#5D35B3 #B3354C #8BB335 #35B39C
split-complementary
#5D35B3 #B39C35 #4CB335
monochromatic
#2C1955 #442784 #5D35B3 #7D58CD #A287DB

Accessibility & contrast

On white

8.00
#5D35B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5D35B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35B3
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35B3#FFFFFF#000000##FFFFFF
##5D35B31.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#425570
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d35b3;
/* rgb */ color: rgb(93, 53, 179);
/* oklch */ color: oklch(45.4% 0.187 291.7);
Tailwind
colors: {
  custom: {
    50: '#936fcb',
    500: '#5d35b3',
    950: '#000000',
  },
}
SCSS
$custom: #5d35b3;
$custom-light: #936fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35b3",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 179
  },
  "hsl": {
    "h": 259.048,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45385,
    "c": 0.18714,
    "h": 291.7
  },
  "luminance": 0.08128
}

Semantic roles & 50–950 ramp

primary
#5D35B3
secondary
#AFC57F
accent
#DE4AAF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D35B3

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

Preview Lab → · Contrast checker → · Palette generator →

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