#5335C2#5335C2

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

Color values

HEX#5335C2
RGBrgb(83, 53, 194)
HSLhsl(253, 57%, 48%)
HSVhsv(253, 73%, 76%)
CMYKcmyk(57.2%, 72.7%, 0%, 23.9%)
CIE-LABlab(34.56, 49.70, -69.02)
CIE-LCHlch(34.56, 85.05, 305.76°)
OKLaboklab(45.77% 0.0518 -0.1987)
OKLCHoklch(45.77% 0.205 284.6)
XYZxyz(14.5750, 8.2794, 51.8585)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335C2 #A4C235
analogous
#355DC2 #5335C2 #9935C2
triadic
#5335C2 #C25335 #35C253
tetradic
#5335C2 #C2355D #A4C235 #35C299
square
#5335C2 #C2355D #A4C235 #35C299
split-complementary
#5335C2 #C29935 #5DC235
monochromatic
#2A1B62 #3E2892 #5335C2 #7960D4 #A291E1

Accessibility & contrast

On white

7.91
#5335C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5335C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335C2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335C2#FFFFFF#000000##FFFFFF
##5335C21.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#185C78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5335c2;
/* rgb */ color: rgb(83, 53, 194);
/* oklch */ color: oklch(45.8% 0.205 284.6);
Tailwind
colors: {
  custom: {
    50: '#8f6fd6',
    500: '#5335c2',
    950: '#000000',
  },
}
SCSS
$custom: #5335c2;
$custom-light: #8f6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5335c2",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 252.766,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45771,
    "c": 0.20537,
    "h": 284.6
  },
  "luminance": 0.0828
}

Semantic roles & 50–950 ramp

primary
#5335C2
secondary
#BDCC87
accent
#E047C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5335C2

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

Preview Lab → · Contrast checker → · Palette generator →

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