#5337B2#5337B2

#5337B2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.6% C 0.184 H 286.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#5337B2
RGBrgb(83, 55, 178)
HSLhsl(254, 53%, 46%)
HSVhsv(254, 69%, 70%)
CMYKcmyk(53.4%, 69.1%, 0%, 30.2%)
CIE-LABlab(33.53, 43.90, -61.26)
CIE-LCHlch(33.53, 75.36, 305.63°)
OKLaboklab(44.61% 0.0532 -0.176)
OKLCHoklch(44.61% 0.184 286.8)
XYZxyz(12.9670, 7.7851, 42.9303)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337B2 #96B237
analogous
#3758B2 #5337B2 #9137B2
triadic
#5337B2 #B25337 #37B253
tetradic
#5337B2 #B23758 #96B237 #37B291
square
#5337B2 #B23758 #96B237 #37B291
split-complementary
#5337B2 #B29137 #58B237
monochromatic
#271A54 #3D2983 #5337B2 #745ACC #9B89DB

Accessibility & contrast

On white

8.21
#5337B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5337B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337B2
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337B2#FFFFFF#000000##FFFFFF
##5337B21.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#2D5770
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5337b2;
/* rgb */ color: rgb(83, 55, 178);
/* oklch */ color: oklch(44.6% 0.184 286.8);
Tailwind
colors: {
  custom: {
    50: '#8d70ca',
    500: '#5337b2',
    950: '#000000',
  },
}
SCSS
$custom: #5337b2;
$custom-light: #8d70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5337b2",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 253.659,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44606,
    "c": 0.18386,
    "h": 286.8
  },
  "luminance": 0.07786
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5337B2

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

Preview Lab → · Contrast checker → · Palette generator →

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