#5337AC#5337AC

#5337AC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.176 H 287.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5337AC
RGBrgb(83, 55, 172)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(51.7%, 68%, 0%, 32.5%)
CIE-LABlab(33.03, 42.12, -58.50)
CIE-LCHlch(33.03, 72.09, 305.75°)
OKLaboklab(44.09% 0.0542 -0.1679)
OKLCHoklch(44.09% 0.176 287.9)
XYZxyz(12.3777, 7.5494, 39.8267)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337AC #90AC37
analogous
#3756AC #5337AC #8E37AC
triadic
#5337AC #AC5337 #37AC53
tetradic
#5337AC #AC3756 #90AC37 #37AC8E
square
#5337AC #AC3756 #90AC37 #37AC8E
split-complementary
#5337AC #AC8E37 #56AC37
monochromatic
#26194F #3D287E #5337AC #7257C9 #9985D8

Accessibility & contrast

On white

8.37
#5337AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5337AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337AC
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337AC#FFFFFF#000000##FFFFFF
##5337AC1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#32546D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5337ac;
/* rgb */ color: rgb(83, 55, 172);
/* oklch */ color: oklch(44.1% 0.176 287.9);
Tailwind
colors: {
  custom: {
    50: '#8c70c6',
    500: '#5337ac',
    950: '#000000',
  },
}
SCSS
$custom: #5337ac;
$custom-light: #8c70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5337ac",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 254.359,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44087,
    "c": 0.17644,
    "h": 287.9
  },
  "luminance": 0.0755
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5337AC

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

Preview Lab → · Contrast checker → · Palette generator →

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