#5337C6#5337C6

#5337C6 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.4% C 0.208 H 283.7°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5337C6
RGBrgb(83, 55, 198)
HSLhsl(252, 57%, 50%)
HSVhsv(252, 72%, 78%)
CMYKcmyk(58.1%, 72.2%, 0%, 22.4%)
CIE-LABlab(35.30, 49.83, -70.15)
CIE-LCHlch(35.30, 86.05, 305.39°)
OKLaboklab(46.41% 0.0494 -0.202)
OKLCHoklch(46.41% 0.208 283.7)
XYZxyz(15.1234, 8.6476, 54.2874)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337C6 #AAC637
analogous
#3763C6 #5337C6 #9B37C6
triadic
#5337C6 #C65337 #37C653
tetradic
#5337C6 #C63763 #AAC637 #37C69B
square
#5337C6 #C63763 #AAC637 #37C69B
split-complementary
#5337C6 #C69B37 #63C637
monochromatic
#2B1C66 #3F2A96 #5337C6 #7B66D4 #A596E2

Accessibility & contrast

On white

7.69
#5337C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5337C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337C6
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337C6#FFFFFF#000000##FFFFFF
##5337C61.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#004EC3
Tritanopia (blue-blind)
#0F5E7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5337c6;
/* rgb */ color: rgb(83, 55, 198);
/* oklch */ color: oklch(46.4% 0.208 283.7);
Tailwind
colors: {
  custom: {
    50: '#9071d8',
    500: '#5337c6',
    950: '#000000',
  },
}
SCSS
$custom: #5337c6;
$custom-light: #9071d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5337c6",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 198
  },
  "hsl": {
    "h": 251.748,
    "s": 56.522,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46406,
    "c": 0.208,
    "h": 283.7
  },
  "luminance": 0.08649
}

Semantic roles & 50–950 ramp

primary
#5337C6
secondary
#C0CD8C
accent
#E048C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5337C6

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

Preview Lab → · Contrast checker → · Palette generator →

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