#5335C8#5335C8

#5335C8 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.3% C 0.212 H 283.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5335C8
RGBrgb(83, 53, 200)
HSLhsl(252, 58%, 50%)
HSVhsv(252, 74%, 78%)
CMYKcmyk(58.5%, 73.5%, 0%, 21.6%)
CIE-LABlab(35.11, 51.46, -71.62)
CIE-LCHlch(35.11, 88.19, 305.70°)
OKLaboklab(46.33% 0.0504 -0.2063)
OKLCHoklch(46.33% 0.212 283.7)
XYZxyz(15.2625, 8.5544, 55.4793)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335C8 #AAC835
analogous
#3560C8 #5335C8 #9D35C8
triadic
#5335C8 #C85335 #35C853
tetradic
#5335C8 #C83560 #AAC835 #35C89D
square
#5335C8 #C83560 #AAC835 #35C89D
split-complementary
#5335C8 #C89D35 #60C835
monochromatic
#2B1B67 #3F2898 #5335C8 #7B64D6 #A595E3

Accessibility & contrast

On white

7.75
#5335C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5335C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335C8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335C8#FFFFFF#000000##FFFFFF
##5335C81.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#095E7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5335c8;
/* rgb */ color: rgb(83, 53, 200);
/* oklch */ color: oklch(46.3% 0.212 283.7);
Tailwind
colors: {
  custom: {
    50: '#9070da',
    500: '#5335c8',
    950: '#000000',
  },
}
SCSS
$custom: #5335c8;
$custom-light: #9070da;
$custom-dark: #000000;
JSON
{
  "hex": "#5335c8",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 200
  },
  "hsl": {
    "h": 252.245,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46331,
    "c": 0.21242,
    "h": 283.7
  },
  "luminance": 0.08555
}

Semantic roles & 50–950 ramp

primary
#5335C8
secondary
#C0CE8B
accent
#E146C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5335C8

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

Preview Lab → · Contrast checker → · Palette generator →

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