#5335C5#5335C5

#5335C5 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.1% C 0.209 H 284.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5335C5
RGBrgb(83, 53, 197)
HSLhsl(253, 58%, 49%)
HSVhsv(253, 73%, 77%)
CMYKcmyk(57.9%, 73.1%, 0%, 22.7%)
CIE-LABlab(34.83, 50.58, -70.32)
CIE-LCHlch(34.83, 86.63, 305.73°)
OKLaboklab(46.05% 0.0511 -0.2026)
OKLCHoklch(46.05% 0.209 284.2)
XYZxyz(14.9153, 8.4155, 53.6509)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335C5 #A7C535
analogous
#355FC5 #5335C5 #9B35C5
triadic
#5335C5 #C55335 #35C553
tetradic
#5335C5 #C5355F #A7C535 #35C59B
square
#5335C5 #C5355F #A7C535 #35C59B
split-complementary
#5335C5 #C59B35 #5FC535
monochromatic
#2A1B65 #3F2895 #5335C5 #7A62D5 #A393E2

Accessibility & contrast

On white

7.83
#5335C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5335C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335C5
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335C5#FFFFFF#000000##FFFFFF
##5335C51.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5335c5;
/* rgb */ color: rgb(83, 53, 197);
/* oklch */ color: oklch(46.1% 0.209 284.2);
Tailwind
colors: {
  custom: {
    50: '#9070d8',
    500: '#5335c5',
    950: '#000000',
  },
}
SCSS
$custom: #5335c5;
$custom-light: #9070d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5335c5",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 197
  },
  "hsl": {
    "h": 252.5,
    "s": 57.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4605,
    "c": 0.20891,
    "h": 284.2
  },
  "luminance": 0.08416
}

Semantic roles & 50–950 ramp

primary
#5335C5
secondary
#BFCD89
accent
#E147C1
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5335C5

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

Preview Lab → · Contrast checker → · Palette generator →

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