#5336C5#5336C5

#5336C5 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.2% C 0.208 H 284.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5336C5
RGBrgb(83, 54, 197)
HSLhsl(252, 57%, 49%)
HSVhsv(252, 73%, 77%)
CMYKcmyk(57.9%, 72.6%, 0%, 22.7%)
CIE-LABlab(35.02, 50.06, -70.02)
CIE-LCHlch(35.02, 86.08, 305.56°)
OKLaboklab(46.18% 0.0504 -0.2017)
OKLCHoklch(46.18% 0.208 284)
XYZxyz(14.9614, 8.5076, 53.6662)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5336C5 #A8C536
analogous
#3661C5 #5336C5 #9B36C5
triadic
#5336C5 #C55336 #36C553
tetradic
#5336C5 #C53661 #A8C536 #36C59B
square
#5336C5 #C53661 #A8C536 #36C59B
split-complementary
#5336C5 #C59B36 #61C536
monochromatic
#2B1C65 #3F2995 #5336C5 #7B64D4 #A494E2

Accessibility & contrast

On white

7.77
#5336C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5336C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5336C5
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5336C5#FFFFFF#000000##FFFFFF
##5336C51.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#125D7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5336c5;
/* rgb */ color: rgb(83, 54, 197);
/* oklch */ color: oklch(46.2% 0.208 284.0);
Tailwind
colors: {
  custom: {
    50: '#9070d8',
    500: '#5336c5',
    950: '#000000',
  },
}
SCSS
$custom: #5336c5;
$custom-light: #9070d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5336c5",
  "rgb": {
    "r": 83,
    "g": 54,
    "b": 197
  },
  "hsl": {
    "h": 252.168,
    "s": 56.972,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46181,
    "c": 0.20786,
    "h": 284
  },
  "luminance": 0.08509
}

Semantic roles & 50–950 ramp

primary
#5336C5
secondary
#BFCD8A
accent
#E048C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5336C5

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

Preview Lab → · Contrast checker → · Palette generator →

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