#5337CB#5337CB

#5337CB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.214 H 283.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5337CB
RGBrgb(83, 55, 203)
HSLhsl(251, 59%, 51%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(59.1%, 72.9%, 0%, 20.4%)
CIE-LABlab(35.76, 51.31, -72.31)
CIE-LCHlch(35.76, 88.66, 305.36°)
OKLaboklab(46.87% 0.0483 -0.2084)
OKLCHoklch(46.87% 0.214 283.1)
XYZxyz(15.7096, 8.8821, 57.3749)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337CB #AFCB37
analogous
#3765CB #5337CB #9D37CB
triadic
#5337CB #CB5337 #37CB53
tetradic
#5337CB #CB3765 #AFCB37 #37CB9D
square
#5337CB #CB3765 #AFCB37 #37CB9D
split-complementary
#5337CB #CB9D37 #65CB37
monochromatic
#2B1C6C #3E299C #5337CB #7D68D8 #A798E4

Accessibility & contrast

On white

7.56
#5337CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5337CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337CB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337CB#FFFFFF#000000##FFFFFF
##5337CB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CF
Deuteranopia (green-blind)
#004FC8
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5337cb;
/* rgb */ color: rgb(83, 55, 203);
/* oklch */ color: oklch(46.9% 0.214 283.1);
Tailwind
colors: {
  custom: {
    50: '#9171dc',
    500: '#5337cb',
    950: '#000000',
  },
}
SCSS
$custom: #5337cb;
$custom-light: #9171dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5337cb",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 251.351,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46871,
    "c": 0.21389,
    "h": 283.1
  },
  "luminance": 0.08883
}

Semantic roles & 50–950 ramp

primary
#5337CB
secondary
#C3D08E
accent
#E246C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5337CB

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

Preview Lab → · Contrast checker → · Palette generator →

#5337CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva