#5335C1#5335C1

#5335C1 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.204 H 284.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5335C1
RGBrgb(83, 53, 193)
HSLhsl(253, 57%, 48%)
HSVhsv(253, 73%, 76%)
CMYKcmyk(57%, 72.5%, 0%, 24.3%)
CIE-LABlab(34.47, 49.41, -68.58)
CIE-LCHlch(34.47, 84.53, 305.77°)
OKLaboklab(45.68% 0.052 -0.1975)
OKLCHoklch(45.68% 0.204 284.8)
XYZxyz(14.4631, 8.2346, 51.2691)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335C1 #A3C135
analogous
#355DC1 #5335C1 #9935C1
triadic
#5335C1 #C15335 #35C153
tetradic
#5335C1 #C1355D #A3C135 #35C199
square
#5335C1 #C1355D #A3C135 #35C199
split-complementary
#5335C1 #C19935 #5DC135
monochromatic
#2A1B61 #3E2891 #5335C1 #7960D3 #A190E0

Accessibility & contrast

On white

7.93
#5335C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5335C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335C1
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335C1#FFFFFF#000000##FFFFFF
##5335C11.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5335c1;
/* rgb */ color: rgb(83, 53, 193);
/* oklch */ color: oklch(45.7% 0.204 284.8);
Tailwind
colors: {
  custom: {
    50: '#8f6fd5',
    500: '#5335c1',
    950: '#000000',
  },
}
SCSS
$custom: #5335c1;
$custom-light: #8f6fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5335c1",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 193
  },
  "hsl": {
    "h": 252.857,
    "s": 56.911,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45678,
    "c": 0.20419,
    "h": 284.8
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#5335C1
secondary
#BCCB87
accent
#E048BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5335C1

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

Preview Lab → · Contrast checker → · Palette generator →

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