#5335BB#5335BB

#5335BB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.197 H 285.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5335BB
RGBrgb(83, 53, 187)
HSLhsl(253, 56%, 47%)
HSVhsv(253, 72%, 73%)
CMYKcmyk(55.6%, 71.7%, 0%, 26.7%)
CIE-LABlab(33.93, 47.65, -65.94)
CIE-LCHlch(33.93, 81.35, 305.85°)
OKLaboklab(45.13% 0.0533 -0.1897)
OKLCHoklch(45.13% 0.197 285.7)
XYZxyz(13.8073, 7.9723, 47.8153)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335BB #9DBB35
analogous
#355ABB #5335BB #9635BB
triadic
#5335BB #BB5335 #35BB53
tetradic
#5335BB #BB355A #9DBB35 #35BB96
square
#5335BB #BB355A #9DBB35 #35BB96
split-complementary
#5335BB #BB9635 #5ABB35
monochromatic
#291A5C #3E278B #5335BB #765CD1 #9E8CDE

Accessibility & contrast

On white

8.09
#5335BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5335BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335BB
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335BB#FFFFFF#000000##FFFFFF
##5335BB1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#235974
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5335bb;
/* rgb */ color: rgb(83, 53, 187);
/* oklch */ color: oklch(45.1% 0.197 285.7);
Tailwind
colors: {
  custom: {
    50: '#8e6fd1',
    500: '#5335bb',
    950: '#000000',
  },
}
SCSS
$custom: #5335bb;
$custom-light: #8e6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5335bb",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 187
  },
  "hsl": {
    "h": 253.433,
    "s": 55.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45129,
    "c": 0.19707,
    "h": 285.7
  },
  "luminance": 0.07973
}

Semantic roles & 50–950 ramp

primary
#5335BB
secondary
#B9C983
accent
#DF49BD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5335BB

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

Preview Lab → · Contrast checker → · Palette generator →

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