#5335CA#5335CA

#5335CA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.5% C 0.215 H 283.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5335CA
RGBrgb(83, 53, 202)
HSLhsl(252, 58%, 50%)
HSVhsv(252, 74%, 79%)
CMYKcmyk(58.9%, 73.8%, 0%, 20.8%)
CIE-LABlab(35.30, 52.04, -72.48)
CIE-LCHlch(35.30, 89.23, 305.68°)
OKLaboklab(46.52% 0.05 -0.2089)
OKLCHoklch(46.52% 0.215 283.5)
XYZxyz(15.4978, 8.6485, 56.7183)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335CA #ACCA35
analogous
#3561CA #5335CA #9E35CA
triadic
#5335CA #CA5335 #35CA53
tetradic
#5335CA #CA3561 #ACCA35 #35CA9E
square
#5335CA #CA3561 #ACCA35 #35CA9E
split-complementary
#5335CA #CA9E35 #61CA35
monochromatic
#2B1C69 #3F289A #5335CA #7C65D7 #A696E3

Accessibility & contrast

On white

7.69
#5335CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5335CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335CA
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335CA#FFFFFF#000000##FFFFFF
##5335CA1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#015F7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5335ca;
/* rgb */ color: rgb(83, 53, 202);
/* oklch */ color: oklch(46.5% 0.215 283.5);
Tailwind
colors: {
  custom: {
    50: '#9170db',
    500: '#5335ca',
    950: '#000000',
  },
}
SCSS
$custom: #5335ca;
$custom-light: #9170db;
$custom-dark: #000000;
JSON
{
  "hex": "#5335ca",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 252.081,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.46519,
    "c": 0.21475,
    "h": 283.5
  },
  "luminance": 0.08649
}

Semantic roles & 50–950 ramp

primary
#5335CA
secondary
#C1CF8C
accent
#E246C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5335CA

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

Preview Lab → · Contrast checker → · Palette generator →

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