#5337B1#5337B1

#5337B1 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.183 H 287.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5337B1
RGBrgb(83, 55, 177)
HSLhsl(254, 53%, 45%)
HSVhsv(254, 69%, 69%)
CMYKcmyk(53.1%, 68.9%, 0%, 30.6%)
CIE-LABlab(33.45, 43.60, -60.80)
CIE-LCHlch(33.45, 74.82, 305.65°)
OKLaboklab(44.52% 0.0534 -0.1747)
OKLCHoklch(44.52% 0.183 287)
XYZxyz(12.8669, 7.7451, 42.4034)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337B1 #95B137
analogous
#3758B1 #5337B1 #9037B1
triadic
#5337B1 #B15337 #37B153
tetradic
#5337B1 #B13758 #95B137 #37B190
square
#5337B1 #B13758 #95B137 #37B190
split-complementary
#5337B1 #B19037 #58B137
monochromatic
#271A54 #3D2882 #5337B1 #745ACC #9B88DA

Accessibility & contrast

On white

8.24
#5337B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5337B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337B1
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337B1#FFFFFF#000000##FFFFFF
##5337B11.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#2E566F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5337b1;
/* rgb */ color: rgb(83, 55, 177);
/* oklch */ color: oklch(44.5% 0.183 287.0);
Tailwind
colors: {
  custom: {
    50: '#8c70c9',
    500: '#5337b1',
    950: '#000000',
  },
}
SCSS
$custom: #5337b1;
$custom-light: #8c70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5337b1",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 177
  },
  "hsl": {
    "h": 253.77,
    "s": 52.586,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44519,
    "c": 0.18264,
    "h": 287
  },
  "luminance": 0.07746
}

Semantic roles & 50–950 ramp

primary
#5337B1
secondary
#B4C480
accent
#DC4CBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5337B1

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

Preview Lab → · Contrast checker → · Palette generator →

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