#5337AB#5337AB

#5337AB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.175 H 288.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5337AB
RGBrgb(83, 55, 171)
HSLhsl(254, 51%, 44%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(51.5%, 67.8%, 0%, 32.9%)
CIE-LABlab(32.94, 41.82, -58.04)
CIE-LCHlch(32.94, 71.54, 305.77°)
OKLaboklab(44% 0.0543 -0.1666)
OKLCHoklch(44% 0.175 288.1)
XYZxyz(12.2820, 7.5111, 39.3228)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337AB #8FAB37
analogous
#3755AB #5337AB #8D37AB
triadic
#5337AB #AB5337 #37AB53
tetradic
#5337AB #AB3755 #8FAB37 #37AB8D
square
#5337AB #AB3755 #8FAB37 #37AB8D
split-complementary
#5337AB #AB8D37 #55AB37
monochromatic
#26194E #3D287D #5337AB #7256C9 #9985D8

Accessibility & contrast

On white

8.39
#5337AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5337AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337AB
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337AB#FFFFFF#000000##FFFFFF
##5337AB1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#33546C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5337ab;
/* rgb */ color: rgb(83, 55, 171);
/* oklch */ color: oklch(44.0% 0.175 288.1);
Tailwind
colors: {
  custom: {
    50: '#8c70c5',
    500: '#5337ab',
    950: '#000000',
  },
}
SCSS
$custom: #5337ab;
$custom-light: #8c70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5337ab",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 254.483,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44002,
    "c": 0.1752,
    "h": 288.1
  },
  "luminance": 0.07512
}

Semantic roles & 50–950 ramp

primary
#5337AB
secondary
#B1C17C
accent
#DB4DB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5337AB

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

Preview Lab → · Contrast checker → · Palette generator →

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