#5335BC#5335BC

#5335BC is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.198 H 285.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5335BC
RGBrgb(83, 53, 188)
HSLhsl(253, 56%, 47%)
HSVhsv(253, 72%, 74%)
CMYKcmyk(55.9%, 71.8%, 0%, 26.3%)
CIE-LABlab(34.01, 47.94, -66.38)
CIE-LCHlch(34.01, 81.89, 305.84°)
OKLaboklab(45.22% 0.0531 -0.191)
OKLCHoklch(45.22% 0.198 285.5)
XYZxyz(13.9147, 8.0152, 48.3811)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335BC #9EBC35
analogous
#355BBC #5335BC #9635BC
triadic
#5335BC #BC5335 #35BC53
tetradic
#5335BC #BC355B #9EBC35 #35BC96
square
#5335BC #BC355B #9EBC35 #35BC96
split-complementary
#5335BC #BC9635 #5BBC35
monochromatic
#291A5D #3E288C #5335BC #775DD1 #9F8DDF

Accessibility & contrast

On white

8.07
#5335BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5335BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335BC
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335BC#FFFFFF#000000##FFFFFF
##5335BC1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#225975
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5335bc;
/* rgb */ color: rgb(83, 53, 188);
/* oklch */ color: oklch(45.2% 0.198 285.5);
Tailwind
colors: {
  custom: {
    50: '#8e6fd1',
    500: '#5335bc',
    950: '#000000',
  },
}
SCSS
$custom: #5335bc;
$custom-light: #8e6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5335bc",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 188
  },
  "hsl": {
    "h": 253.333,
    "s": 56.017,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4522,
    "c": 0.19825,
    "h": 285.5
  },
  "luminance": 0.08016
}

Semantic roles & 50–950 ramp

primary
#5335BC
secondary
#BAC984
accent
#DF48BE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5335BC

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

Preview Lab → · Contrast checker → · Palette generator →

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