#5335BA#5335BA

#5335BA is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.196 H 285.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5335BA
RGBrgb(83, 53, 186)
HSLhsl(254, 56%, 47%)
HSVhsv(254, 72%, 73%)
CMYKcmyk(55.4%, 71.5%, 0%, 27.1%)
CIE-LABlab(33.84, 47.35, -65.50)
CIE-LCHlch(33.84, 80.82, 305.87°)
OKLaboklab(45.04% 0.0535 -0.1884)
OKLCHoklch(45.04% 0.196 285.8)
XYZxyz(13.7006, 7.9296, 47.2535)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335BA #9CBA35
analogous
#3559BA #5335BA #9635BA
triadic
#5335BA #BA5335 #35BA53
tetradic
#5335BA #BA3559 #9CBA35 #35BA96
square
#5335BA #BA3559 #9CBA35 #35BA96
split-complementary
#5335BA #BA9635 #59BA35
monochromatic
#281A5B #3E278A #5335BA #765CD0 #9E8BDE

Accessibility & contrast

On white

8.12
#5335BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5335BA
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335BA#FFFFFF#000000##FFFFFF
##5335BA1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#255974
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5335ba;
/* rgb */ color: rgb(83, 53, 186);
/* oklch */ color: oklch(45.0% 0.196 285.8);
Tailwind
colors: {
  custom: {
    50: '#8e6fd0',
    500: '#5335ba',
    950: '#000000',
  },
}
SCSS
$custom: #5335ba;
$custom-light: #8e6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5335ba",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 186
  },
  "hsl": {
    "h": 253.534,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45038,
    "c": 0.19586,
    "h": 285.8
  },
  "luminance": 0.0793
}

Semantic roles & 50–950 ramp

primary
#5335BA
secondary
#B9C882
accent
#DF49BD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5335BA

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

Preview Lab → · Contrast checker → · Palette generator →

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