#5337AF#5337AF

#5337AF is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.3% C 0.180 H 287.3°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#5337AF
RGBrgb(83, 55, 175)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 69%, 69%)
CMYKcmyk(52.6%, 68.6%, 0%, 31.4%)
CIE-LABlab(33.28, 43.01, -59.89)
CIE-LCHlch(33.28, 73.73, 305.69°)
OKLaboklab(44.35% 0.0537 -0.172)
OKLCHoklch(44.35% 0.18 287.3)
XYZxyz(12.6690, 7.6659, 41.3612)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337AF #93AF37
analogous
#3757AF #5337AF #8F37AF
triadic
#5337AF #AF5337 #37AF53
tetradic
#5337AF #AF3757 #93AF37 #37AF8F
square
#5337AF #AF3757 #93AF37 #37AF8F
split-complementary
#5337AF #AF8F37 #57AF37
monochromatic
#271A52 #3D2880 #5337AF #7359CB #9A87D9

Accessibility & contrast

On white

8.29
#5337AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5337AF
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337AF#FFFFFF#000000##FFFFFF
##5337AF1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#30566E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5337af;
/* rgb */ color: rgb(83, 55, 175);
/* oklch */ color: oklch(44.3% 0.180 287.3);
Tailwind
colors: {
  custom: {
    50: '#8c70c8',
    500: '#5337af',
    950: '#000000',
  },
}
SCSS
$custom: #5337af;
$custom-light: #8c70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5337af",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 254,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44345,
    "c": 0.18017,
    "h": 287.3
  },
  "luminance": 0.07667
}

Semantic roles & 50–950 ramp

primary
#5337AF
secondary
#B3C37F
accent
#DC4CBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5337AF

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

Preview Lab → · Contrast checker → · Palette generator →

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