#5337AD#5337AD

#5337AD is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.2% C 0.178 H 287.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#5337AD
RGBrgb(83, 55, 173)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 68%, 68%)
CMYKcmyk(52%, 68.2%, 0%, 32.2%)
CIE-LABlab(33.11, 42.41, -58.97)
CIE-LCHlch(33.11, 72.64, 305.73°)
OKLaboklab(44.17% 0.054 -0.1693)
OKLCHoklch(44.17% 0.178 287.7)
XYZxyz(12.4741, 7.5879, 40.3344)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337AD #91AD37
analogous
#3756AD #5337AD #8E37AD
triadic
#5337AD #AD5337 #37AD53
tetradic
#5337AD #AD3756 #91AD37 #37AD8E
square
#5337AD #AD3756 #91AD37 #37AD8E
split-complementary
#5337AD #AD8E37 #56AD37
monochromatic
#261950 #3D287F #5337AD #7357CA #9A86D8

Accessibility & contrast

On white

8.34
#5337AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5337AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337AD
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337AD#FFFFFF#000000##FFFFFF
##5337AD1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#004BAB
Tritanopia (blue-blind)
#31556D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5337ad;
/* rgb */ color: rgb(83, 55, 173);
/* oklch */ color: oklch(44.2% 0.178 287.7);
Tailwind
colors: {
  custom: {
    50: '#8c70c6',
    500: '#5337ad',
    950: '#000000',
  },
}
SCSS
$custom: #5337ad;
$custom-light: #8c70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5337ad",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 173
  },
  "hsl": {
    "h": 254.237,
    "s": 51.754,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44173,
    "c": 0.17769,
    "h": 287.7
  },
  "luminance": 0.07589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5337AD

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

Preview Lab → · Contrast checker → · Palette generator →

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