#5335CF#5335CF

#5335CF is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.221 H 282.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5335CF
RGBrgb(83, 53, 207)
HSLhsl(252, 62%, 51%)
HSVhsv(252, 74%, 81%)
CMYKcmyk(59.9%, 74.4%, 0%, 18.8%)
CIE-LABlab(35.77, 53.50, -74.61)
CIE-LCHlch(35.77, 91.81, 305.64°)
OKLaboklab(46.99% 0.0488 -0.2151)
OKLCHoklch(46.99% 0.221 282.8)
XYZxyz(16.0994, 8.8891, 59.8868)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335CF #B1CF35
analogous
#3564CF #5335CF #A035CF
triadic
#5335CF #CF5335 #35CF53
tetradic
#5335CF #CF3564 #B1CF35 #35CFA0
square
#5335CF #CF3564 #B1CF35 #35CFA0
split-complementary
#5335CF #CFA035 #64CF35
monochromatic
#2B1A6F #3E26A1 #5335CF #7D66DB #A798E7

Accessibility & contrast

On white

7.56
#5335CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5335CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335CF
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335CF#FFFFFF#000000##FFFFFF
##5335CF1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#004FCC
Tritanopia (blue-blind)
#006180
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5335cf;
/* rgb */ color: rgb(83, 53, 207);
/* oklch */ color: oklch(47.0% 0.221 282.8);
Tailwind
colors: {
  custom: {
    50: '#9170df',
    500: '#5335cf',
    950: '#000000',
  },
}
SCSS
$custom: #5335cf;
$custom-light: #9170df;
$custom-dark: #000000;
JSON
{
  "hex": "#5335cf",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 207
  },
  "hsl": {
    "h": 251.688,
    "s": 61.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46994,
    "c": 0.22054,
    "h": 282.8
  },
  "luminance": 0.0889
}

Semantic roles & 50–950 ramp

primary
#5335CF
secondary
#C5D28E
accent
#E543C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5335CF

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

Preview Lab → · Contrast checker → · Palette generator →

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