#5336C2#5336C2

#5336C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 45.9% C 0.204 H 284.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5336C2
RGBrgb(83, 54, 194)
HSLhsl(252, 56%, 49%)
HSVhsv(252, 72%, 76%)
CMYKcmyk(57.2%, 72.2%, 0%, 23.9%)
CIE-LABlab(34.74, 49.18, -68.71)
CIE-LCHlch(34.74, 84.50, 305.59°)
OKLaboklab(45.9% 0.051 -0.1978)
OKLCHoklch(45.9% 0.204 284.5)
XYZxyz(14.6211, 8.3715, 51.8739)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5336C2 #A5C236
analogous
#365FC2 #5336C2 #9936C2
triadic
#5336C2 #C25336 #36C253
tetradic
#5336C2 #C2365F #A5C236 #36C299
square
#5336C2 #C2365F #A5C236 #36C299
split-complementary
#5336C2 #C29936 #5FC236
monochromatic
#2A1B62 #3F2992 #5336C2 #7962D3 #A292E1

Accessibility & contrast

On white

7.85
#5336C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5336C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5336C2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5336C2#FFFFFF#000000##FFFFFF
##5336C21.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#185C79
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5336c2;
/* rgb */ color: rgb(83, 54, 194);
/* oklch */ color: oklch(45.9% 0.204 284.5);
Tailwind
colors: {
  custom: {
    50: '#8f70d6',
    500: '#5336c2',
    950: '#000000',
  },
}
SCSS
$custom: #5336c2;
$custom-light: #8f70d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5336c2",
  "rgb": {
    "r": 83,
    "g": 54,
    "b": 194
  },
  "hsl": {
    "h": 252.429,
    "s": 56.452,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45903,
    "c": 0.20432,
    "h": 284.5
  },
  "luminance": 0.08372
}

Semantic roles & 50–950 ramp

primary
#5336C2
secondary
#BECC88
accent
#E048C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5336C2

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

Preview Lab → · Contrast checker → · Palette generator →

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