#5335DC#5335DC

#5335DC is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.235 H 281.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5335DC
RGBrgb(83, 53, 220)
HSLhsl(251, 70%, 54%)
HSVhsv(251, 76%, 86%)
CMYKcmyk(62.3%, 75.9%, 0%, 13.7%)
CIE-LABlab(37.02, 57.27, -80.04)
CIE-LCHlch(37.02, 98.41, 305.58°)
OKLaboklab(48.25% 0.0456 -0.2309)
OKLCHoklch(48.25% 0.235 281.2)
XYZxyz(17.7546, 9.5512, 68.6042)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335DC #BEDC35
analogous
#356ADC #5335DC #A635DC
triadic
#5335DC #DC5335 #35DC53
tetradic
#5335DC #DC356A #BEDC35 #35DCA6
square
#5335DC #DC356A #BEDC35 #35DCA6
split-complementary
#5335DC #DCA635 #6ADC35
monochromatic
#291680 #3A1FB5 #5335DC #7F69E5 #AC9DEE

Accessibility & contrast

On white

7.22
#5335DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5335DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335DC
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335DC#FFFFFF#000000##FFFFFF
##5335DC1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DE1
Deuteranopia (green-blind)
#0051D9
Tritanopia (blue-blind)
#006687
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5335dc;
/* rgb */ color: rgb(83, 53, 220);
/* oklch */ color: oklch(48.3% 0.235 281.2);
Tailwind
colors: {
  custom: {
    50: '#9471e8',
    500: '#5335dc',
    950: '#000000',
  },
}
SCSS
$custom: #5335dc;
$custom-light: #9471e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5335dc",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 220
  },
  "hsl": {
    "h": 250.778,
    "s": 70.464,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48252,
    "c": 0.23539,
    "h": 281.2
  },
  "luminance": 0.09553
}

Semantic roles & 50–950 ramp

primary
#5335DC
secondary
#CDDA93
accent
#ED3BCD
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5335DC

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

Preview Lab → · Contrast checker → · Palette generator →

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