#5336CC#5336CC

#5336CC is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.216 H 283.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5336CC
RGBrgb(83, 54, 204)
HSLhsl(252, 60%, 51%)
HSVhsv(252, 74%, 80%)
CMYKcmyk(59.3%, 73.5%, 0%, 20%)
CIE-LABlab(35.67, 52.12, -73.04)
CIE-LCHlch(35.67, 89.72, 305.51°)
OKLaboklab(46.84% 0.0488 -0.2105)
OKLCHoklch(46.84% 0.216 283)
XYZxyz(15.7822, 8.8359, 57.9889)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5336CC #AFCC36
analogous
#3664CC #5336CC #9E36CC
triadic
#5336CC #CC5336 #36CC53
tetradic
#5336CC #CC3664 #AFCC36 #36CC9E
square
#5336CC #CC3664 #AFCC36 #36CC9E
split-complementary
#5336CC #CC9E36 #64CC36
monochromatic
#2B1B6C #3E289D #5336CC #7D67D8 #A798E5

Accessibility & contrast

On white

7.59
#5336CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5336CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5336CC
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5336CC#FFFFFF#000000##FFFFFF
##5336CC1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5336cc;
/* rgb */ color: rgb(83, 54, 204);
/* oklch */ color: oklch(46.8% 0.216 283.0);
Tailwind
colors: {
  custom: {
    50: '#9170dd',
    500: '#5336cc',
    950: '#000000',
  },
}
SCSS
$custom: #5336cc;
$custom-light: #9170dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5336cc",
  "rgb": {
    "r": 83,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 251.6,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46835,
    "c": 0.21608,
    "h": 283
  },
  "luminance": 0.08837
}

Semantic roles & 50–950 ramp

primary
#5336CC
secondary
#C3D08E
accent
#E345C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5336CC

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

Preview Lab → · Contrast checker → · Palette generator →

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