#5337AE#5337AE

#5337AE is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.3% C 0.179 H 287.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5337AE
RGBrgb(83, 55, 174)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 68%, 68%)
CMYKcmyk(52.3%, 68.4%, 0%, 31.8%)
CIE-LABlab(33.19, 42.71, -59.43)
CIE-LCHlch(33.19, 73.18, 305.71°)
OKLaboklab(44.26% 0.0539 -0.1706)
OKLCHoklch(44.26% 0.179 287.5)
XYZxyz(12.5712, 7.6268, 40.8459)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337AE #92AE37
analogous
#3756AE #5337AE #8F37AE
triadic
#5337AE #AE5337 #37AE53
tetradic
#5337AE #AE3756 #92AE37 #37AE8F
square
#5337AE #AE3756 #92AE37 #37AE8F
split-complementary
#5337AE #AE8F37 #56AE37
monochromatic
#271A51 #3D287F #5337AE #7358CA #9A86D9

Accessibility & contrast

On white

8.32
#5337AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5337AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337AE
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337AE#FFFFFF#000000##FFFFFF
##5337AE1.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#30556E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5337ae;
/* rgb */ color: rgb(83, 55, 174);
/* oklch */ color: oklch(44.3% 0.179 287.5);
Tailwind
colors: {
  custom: {
    50: '#8c70c7',
    500: '#5337ae',
    950: '#000000',
  },
}
SCSS
$custom: #5337ae;
$custom-light: #8c70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5337ae",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 174
  },
  "hsl": {
    "h": 254.118,
    "s": 51.965,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44259,
    "c": 0.17893,
    "h": 287.5
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#5337AE
secondary
#B3C37E
accent
#DB4CBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5337AE

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

Preview Lab → · Contrast checker → · Palette generator →

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