#5337B5#5337B5

#5337B5 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.9% C 0.188 H 286.3°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5337B5
RGBrgb(83, 55, 181)
HSLhsl(253, 53%, 46%)
HSVhsv(253, 70%, 71%)
CMYKcmyk(54.1%, 69.6%, 0%, 29%)
CIE-LABlab(33.79, 44.79, -62.62)
CIE-LCHlch(33.79, 76.99, 305.58°)
OKLaboklab(44.87% 0.0527 -0.18)
OKLCHoklch(44.87% 0.188 286.3)
XYZxyz(13.2715, 7.9069, 44.5340)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337B5 #99B537
analogous
#375AB5 #5337B5 #9237B5
triadic
#5337B5 #B55337 #37B553
tetradic
#5337B5 #B5375A #99B537 #37B592
square
#5337B5 #B5375A #99B537 #37B592
split-complementary
#5337B5 #B59237 #5AB537
monochromatic
#281A57 #3D2986 #5337B5 #755CCD #9D8BDC

Accessibility & contrast

On white

8.13
#5337B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5337B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337B5
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337B5#FFFFFF#000000##FFFFFF
##5337B51.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#2A5872
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5337b5;
/* rgb */ color: rgb(83, 55, 181);
/* oklch */ color: oklch(44.9% 0.188 286.3);
Tailwind
colors: {
  custom: {
    50: '#8d70cc',
    500: '#5337b5',
    950: '#000000',
  },
}
SCSS
$custom: #5337b5;
$custom-light: #8d70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5337b5",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 181
  },
  "hsl": {
    "h": 253.333,
    "s": 53.39,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44869,
    "c": 0.18755,
    "h": 286.3
  },
  "luminance": 0.07908
}

Semantic roles & 50–950 ramp

primary
#5337B5
secondary
#B7C682
accent
#DD4BBC
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5337B5

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

Preview Lab → · Contrast checker → · Palette generator →

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