#5335AE#5335AE

#5335AE is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.181 H 287.9°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5335AE
RGBrgb(83, 53, 174)
HSLhsl(255, 53%, 45%)
HSVhsv(255, 70%, 68%)
CMYKcmyk(52.3%, 69.5%, 0%, 31.8%)
CIE-LABlab(32.79, 43.82, -60.09)
CIE-LCHlch(32.79, 74.37, 306.10°)
OKLaboklab(43.97% 0.0558 -0.1725)
OKLCHoklch(43.97% 0.181 287.9)
XYZxyz(12.4781, 7.4406, 40.8149)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335AE #90AE35
analogous
#3554AE #5335AE #9035AE
triadic
#5335AE #AE5335 #35AE53
tetradic
#5335AE #AE3554 #90AE35 #35AE90
square
#5335AE #AE3554 #90AE35 #35AE90
split-complementary
#5335AE #AE9035 #54AE35
monochromatic
#261850 #3D277F #5335AE #7255CB #9984DA

Accessibility & contrast

On white

8.44
#5335AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5335AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335AE
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335AE#FFFFFF#000000##FFFFFF
##5335AE1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#31546D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5335ae;
/* rgb */ color: rgb(83, 53, 174);
/* oklch */ color: oklch(44.0% 0.181 287.9);
Tailwind
colors: {
  custom: {
    50: '#8c6fc7',
    500: '#5335ae',
    950: '#000000',
  },
}
SCSS
$custom: #5335ae;
$custom-light: #8c6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5335ae",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 174
  },
  "hsl": {
    "h": 254.876,
    "s": 53.304,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4397,
    "c": 0.18133,
    "h": 287.9
  },
  "luminance": 0.07441
}

Semantic roles & 50–950 ramp

primary
#5335AE
secondary
#B1C37C
accent
#DD4BB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5335AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5335AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva