#5335CC#5335CC

#5335CC is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.217 H 283.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5335CC
RGBrgb(83, 53, 204)
HSLhsl(252, 60%, 50%)
HSVhsv(252, 74%, 80%)
CMYKcmyk(59.3%, 74%, 0%, 20%)
CIE-LABlab(35.49, 52.63, -73.33)
CIE-LCHlch(35.49, 90.26, 305.67°)
OKLaboklab(46.71% 0.0495 -0.2113)
OKLCHoklch(46.71% 0.217 283.2)
XYZxyz(15.7361, 8.7438, 57.9735)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335CC #AECC35
analogous
#3562CC #5335CC #9F35CC
triadic
#5335CC #CC5335 #35CC53
tetradic
#5335CC #CC3562 #AECC35 #35CC9F
square
#5335CC #CC3562 #AECC35 #35CC9F
split-complementary
#5335CC #CC9F35 #62CC35
monochromatic
#2B1B6B #3F279C #5335CC #7D66D8 #A697E5

Accessibility & contrast

On white

7.64
#5335CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5335CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335CC
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335CC#FFFFFF#000000##FFFFFF
##5335CC1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5335cc;
/* rgb */ color: rgb(83, 53, 204);
/* oklch */ color: oklch(46.7% 0.217 283.2);
Tailwind
colors: {
  custom: {
    50: '#9170dd',
    500: '#5335cc',
    950: '#000000',
  },
}
SCSS
$custom: #5335cc;
$custom-light: #9170dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5335cc",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 251.921,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46708,
    "c": 0.21707,
    "h": 283.2
  },
  "luminance": 0.08745
}

Semantic roles & 50–950 ramp

primary
#5335CC
secondary
#C3D08D
accent
#E345C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5335CC

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

Preview Lab → · Contrast checker → · Palette generator →

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