#5D35B0#5D35B0

#5D35B0 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.184 H 292.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5D35B0
RGBrgb(93, 53, 176)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 69%)
CMYKcmyk(47.2%, 69.9%, 0%, 31%)
CIE-LABlab(34.00, 46.15, -59.26)
CIE-LCHlch(34.00, 75.11, 307.91°)
OKLaboklab(45.13% 0.0698 -0.1698)
OKLCHoklch(45.13% 0.184 292.4)
XYZxyz(13.6216, 8.0075, 41.8938)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35B0 #88B035
analogous
#354BB0 #5D35B0 #9A35B0
triadic
#5D35B0 #B05D35 #35B05D
tetradic
#5D35B0 #B0354B #88B035 #35B09A
square
#5D35B0 #B0354B #88B035 #35B09A
split-complementary
#5D35B0 #B09A35 #4BB035
monochromatic
#2B1952 #442781 #5D35B0 #7C56CC #A185DA

Accessibility & contrast

On white

8.07
#5D35B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5D35B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35B0
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35B0#FFFFFF#000000##FFFFFF
##5D35B01.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#44546E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d35b0;
/* rgb */ color: rgb(93, 53, 176);
/* oklch */ color: oklch(45.1% 0.184 292.4);
Tailwind
colors: {
  custom: {
    50: '#926fc9',
    500: '#5d35b0',
    950: '#000000',
  },
}
SCSS
$custom: #5d35b0;
$custom-light: #926fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35b0",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 176
  },
  "hsl": {
    "h": 259.512,
    "s": 53.712,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4513,
    "c": 0.18359,
    "h": 292.4
  },
  "luminance": 0.08008
}

Semantic roles & 50–950 ramp

primary
#5D35B0
secondary
#ADC47D
accent
#DD4BAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D35B0

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

Preview Lab → · Contrast checker → · Palette generator →

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