#5D35A8#5D35A8

#5D35A8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.174 H 294.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5D35A8
RGBrgb(93, 53, 168)
HSLhsl(261, 52%, 43%)
HSVhsv(261, 68%, 66%)
CMYKcmyk(44.6%, 68.5%, 0%, 34.1%)
CIE-LABlab(33.35, 43.92, -55.54)
CIE-LCHlch(33.35, 70.81, 308.34°)
OKLaboklab(44.47% 0.0712 -0.1588)
OKLCHoklch(44.47% 0.174 294.1)
XYZxyz(12.8533, 7.7002, 37.8473)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35A8 #80A835
analogous
#3546A8 #5D35A8 #9635A8
triadic
#5D35A8 #A85D35 #35A85D
tetradic
#5D35A8 #A83546 #80A835 #35A896
square
#5D35A8 #A83546 #80A835 #35A896
split-complementary
#5D35A8 #A89635 #46A835
monochromatic
#29184B #432679 #5D35A8 #7B52C8 #9F80D7

Accessibility & contrast

On white

8.27
#5D35A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5D35A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35A8
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35A8#FFFFFF#000000##FFFFFF
##5D35A81.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#004CA6
Tritanopia (blue-blind)
#48516A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d35a8;
/* rgb */ color: rgb(93, 53, 168);
/* oklch */ color: oklch(44.5% 0.174 294.1);
Tailwind
colors: {
  custom: {
    50: '#916fc3',
    500: '#5d35a8',
    950: '#000000',
  },
}
SCSS
$custom: #5d35a8;
$custom-light: #916fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35a8",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 168
  },
  "hsl": {
    "h": 260.87,
    "s": 52.036,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44465,
    "c": 0.17406,
    "h": 294.1
  },
  "luminance": 0.07701
}

Semantic roles & 50–950 ramp

primary
#5D35A8
secondary
#A7C078
accent
#DB4CAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5D35A8

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

Preview Lab → · Contrast checker → · Palette generator →

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