#5335C3#5335C3

#5335C3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.207 H 284.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5335C3
RGBrgb(83, 53, 195)
HSLhsl(253, 57%, 49%)
HSVhsv(253, 73%, 76%)
CMYKcmyk(57.4%, 72.8%, 0%, 23.5%)
CIE-LABlab(34.65, 50.00, -69.46)
CIE-LCHlch(34.65, 85.58, 305.75°)
OKLaboklab(45.86% 0.0516 -0.2)
OKLCHoklch(45.86% 0.207 284.5)
XYZxyz(14.6877, 8.3244, 52.4520)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335C3 #A5C335
analogous
#355EC3 #5335C3 #9A35C3
triadic
#5335C3 #C35335 #35C353
tetradic
#5335C3 #C3355E #A5C335 #35C39A
square
#5335C3 #C3355E #A5C335 #35C39A
split-complementary
#5335C3 #C39A35 #5EC335
monochromatic
#2A1B63 #3F2893 #5335C3 #7961D4 #A291E1

Accessibility & contrast

On white

7.88
#5335C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5335C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335C3
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335C3#FFFFFF#000000##FFFFFF
##5335C31.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)
#0056C7
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#175C79
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5335c3;
/* rgb */ color: rgb(83, 53, 195);
/* oklch */ color: oklch(45.9% 0.207 284.5);
Tailwind
colors: {
  custom: {
    50: '#8f6fd6',
    500: '#5335c3',
    950: '#000000',
  },
}
SCSS
$custom: #5335c3;
$custom-light: #8f6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5335c3",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 195
  },
  "hsl": {
    "h": 252.676,
    "s": 57.258,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45864,
    "c": 0.20656,
    "h": 284.5
  },
  "luminance": 0.08325
}

Semantic roles & 50–950 ramp

primary
#5335C3
secondary
#BECC88
accent
#E147C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5335C3

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

Preview Lab → · Contrast checker → · Palette generator →

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