#5337C2#5337C2

#5337C2 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.0% C 0.203 H 284.3°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5337C2
RGBrgb(83, 55, 194)
HSLhsl(252, 56%, 49%)
HSVhsv(252, 72%, 76%)
CMYKcmyk(57.2%, 71.6%, 0%, 23.9%)
CIE-LABlab(34.93, 48.65, -68.40)
CIE-LCHlch(34.93, 83.94, 305.42°)
OKLaboklab(46.04% 0.0502 -0.1969)
OKLCHoklch(46.04% 0.203 284.3)
XYZxyz(14.6681, 8.4655, 51.8896)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337C2 #A6C237
analogous
#3761C2 #5337C2 #9937C2
triadic
#5337C2 #C25337 #37C253
tetradic
#5337C2 #C23761 #A6C237 #37C299
square
#5337C2 #C23761 #A6C237 #37C299
split-complementary
#5337C2 #C29937 #61C237
monochromatic
#2A1C63 #3F2992 #5337C2 #7A63D3 #A393E0

Accessibility & contrast

On white

7.80
#5337C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5337C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337C2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337C2#FFFFFF#000000##FFFFFF
##5337C21.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#185D79
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5337c2;
/* rgb */ color: rgb(83, 55, 194);
/* oklch */ color: oklch(46.0% 0.203 284.3);
Tailwind
colors: {
  custom: {
    50: '#8f71d6',
    500: '#5337c2',
    950: '#000000',
  },
}
SCSS
$custom: #5337c2;
$custom-light: #8f71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5337c2",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 252.086,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46038,
    "c": 0.20324,
    "h": 284.3
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

primary
#5337C2
secondary
#BECB89
accent
#DF49C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5337C2

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

Preview Lab → · Contrast checker → · Palette generator →

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