#5335AB#5335AB

#5335AB is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.178 H 288.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5335AB
RGBrgb(83, 53, 171)
HSLhsl(255, 53%, 44%)
HSVhsv(255, 69%, 67%)
CMYKcmyk(51.5%, 69%, 0%, 32.9%)
CIE-LABlab(32.54, 42.94, -58.71)
CIE-LCHlch(32.54, 72.73, 306.18°)
OKLaboklab(43.71% 0.0563 -0.1685)
OKLCHoklch(43.71% 0.178 288.5)
XYZxyz(12.1889, 7.3249, 39.2918)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335AB #8DAB35
analogous
#3552AB #5335AB #8E35AB
triadic
#5335AB #AB5335 #35AB53
tetradic
#5335AB #AB3552 #8DAB35 #35AB8E
square
#5335AB #AB3552 #8DAB35 #35AB8E
split-complementary
#5335AB #AB8E35 #52AB35
monochromatic
#26184E #3C277C #5335AB #7153CA #9882D8

Accessibility & contrast

On white

8.52
#5335AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5335AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335AB
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335AB#FFFFFF#000000##FFFFFF
##5335AB1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#33536C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5335ab;
/* rgb */ color: rgb(83, 53, 171);
/* oklch */ color: oklch(43.7% 0.178 288.5);
Tailwind
colors: {
  custom: {
    50: '#8c6fc5',
    500: '#5335ab',
    950: '#000000',
  },
}
SCSS
$custom: #5335ab;
$custom-light: #8c6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5335ab",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 255.254,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43709,
    "c": 0.17766,
    "h": 288.5
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#5335AB
secondary
#B0C27A
accent
#DC4CB7
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5335AB

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

Preview Lab → · Contrast checker → · Palette generator →

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