#5336C1#5336C1

#5336C1 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.8% C 0.203 H 284.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5336C1
RGBrgb(83, 54, 193)
HSLhsl(253, 56%, 48%)
HSVhsv(253, 72%, 76%)
CMYKcmyk(57%, 72%, 0%, 24.3%)
CIE-LABlab(34.65, 48.88, -68.28)
CIE-LCHlch(34.65, 83.97, 305.60°)
OKLaboklab(45.81% 0.0512 -0.1966)
OKLCHoklch(45.81% 0.203 284.6)
XYZxyz(14.5092, 8.3267, 51.2844)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5336C1 #A4C136
analogous
#365EC1 #5336C1 #9836C1
triadic
#5336C1 #C15336 #36C153
tetradic
#5336C1 #C1365E #A4C136 #36C198
square
#5336C1 #C1365E #A4C136 #36C198
split-complementary
#5336C1 #C19836 #5EC136
monochromatic
#2A1B61 #3E2991 #5336C1 #7961D3 #A291E0

Accessibility & contrast

On white

7.88
#5336C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5336C1
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5336C1#FFFFFF#000000##FFFFFF
##5336C11.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C5
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#1A5C78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5336c1;
/* rgb */ color: rgb(83, 54, 193);
/* oklch */ color: oklch(45.8% 0.203 284.6);
Tailwind
colors: {
  custom: {
    50: '#8f70d5',
    500: '#5336c1',
    950: '#000000',
  },
}
SCSS
$custom: #5336c1;
$custom-light: #8f70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5336c1",
  "rgb": {
    "r": 83,
    "g": 54,
    "b": 193
  },
  "hsl": {
    "h": 252.518,
    "s": 56.275,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45811,
    "c": 0.20313,
    "h": 284.6
  },
  "luminance": 0.08328
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5336C1

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

Preview Lab → · Contrast checker → · Palette generator →

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