#5D35B2#5D35B2

#5D35B2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.186 H 291.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5D35B2
RGBrgb(93, 53, 178)
HSLhsl(259, 54%, 45%)
HSVhsv(259, 70%, 70%)
CMYKcmyk(47.8%, 70.2%, 0%, 30.2%)
CIE-LABlab(34.16, 46.70, -60.18)
CIE-LCHlch(34.16, 76.18, 307.81°)
OKLaboklab(45.3% 0.0695 -0.1725)
OKLCHoklch(45.3% 0.186 291.9)
XYZxyz(13.8209, 8.0872, 42.9436)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35B2 #8AB235
analogous
#354BB2 #5D35B2 #9B35B2
triadic
#5D35B2 #B25D35 #35B25D
tetradic
#5D35B2 #B2354B #8AB235 #35B29B
square
#5D35B2 #B2354B #8AB235 #35B29B
split-complementary
#5D35B2 #B29B35 #4BB235
monochromatic
#2C1954 #442783 #5D35B2 #7D57CD #A186DB

Accessibility & contrast

On white

8.02
#5D35B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5D35B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35B2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35B2#FFFFFF#000000##FFFFFF
##5D35B21.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#42556F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d35b2;
/* rgb */ color: rgb(93, 53, 178);
/* oklch */ color: oklch(45.3% 0.186 291.9);
Tailwind
colors: {
  custom: {
    50: '#936fca',
    500: '#5d35b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d35b2;
$custom-light: #936fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35b2",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 259.2,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.453,
    "c": 0.18596,
    "h": 291.9
  },
  "luminance": 0.08088
}

Semantic roles & 50–950 ramp

primary
#5D35B2
secondary
#AEC57E
accent
#DD4AAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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