#5337A8#5337A8

#5337A8 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.7% C 0.171 H 288.6°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5337A8
RGBrgb(83, 55, 168)
HSLhsl(255, 51%, 44%)
HSVhsv(255, 67%, 66%)
CMYKcmyk(50.6%, 67.3%, 0%, 34.1%)
CIE-LABlab(32.70, 40.93, -56.65)
CIE-LCHlch(32.70, 69.89, 305.85°)
OKLaboklab(43.75% 0.0548 -0.1625)
OKLCHoklch(43.75% 0.171 288.6)
XYZxyz(11.9993, 7.3980, 37.8339)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337A8 #8CA837
analogous
#3753A8 #5337A8 #8B37A8
triadic
#5337A8 #A85337 #37A853
tetradic
#5337A8 #A83753 #8CA837 #37A88B
square
#5337A8 #A83753 #8CA837 #37A88B
split-complementary
#5337A8 #A88B37 #53A837
monochromatic
#25194C #3C287A #5337A8 #7155C7 #9883D6

Accessibility & contrast

On white

8.47
#5337A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5337A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337A8
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337A8#FFFFFF#000000##FFFFFF
##5337A81.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#35536B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5337a8;
/* rgb */ color: rgb(83, 55, 168);
/* oklch */ color: oklch(43.7% 0.171 288.6);
Tailwind
colors: {
  custom: {
    50: '#8b70c3',
    500: '#5337a8',
    950: '#000000',
  },
}
SCSS
$custom: #5337a8;
$custom-light: #8b70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5337a8",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 254.867,
    "s": 50.673,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43747,
    "c": 0.17145,
    "h": 288.6
  },
  "luminance": 0.07399
}

Semantic roles & 50–950 ramp

primary
#5337A8
secondary
#AFC07B
accent
#DA4EB7
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5337A8

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

Preview Lab → · Contrast checker → · Palette generator →

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