#5337C1#5337C1

#5337C1 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 45.9% C 0.202 H 284.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5337C1
RGBrgb(83, 55, 193)
HSLhsl(252, 56%, 49%)
HSVhsv(252, 72%, 76%)
CMYKcmyk(57%, 71.5%, 0%, 24.3%)
CIE-LABlab(34.84, 48.35, -67.96)
CIE-LCHlch(34.84, 83.41, 305.43°)
OKLaboklab(45.95% 0.0504 -0.1957)
OKLCHoklch(45.95% 0.202 284.5)
XYZxyz(14.5562, 8.4207, 51.3001)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5337C1 #A5C137
analogous
#3760C1 #5337C1 #9837C1
triadic
#5337C1 #C15337 #37C153
tetradic
#5337C1 #C13760 #A5C137 #37C198
square
#5337C1 #C13760 #A5C137 #37C198
split-complementary
#5337C1 #C19837 #60C137
monochromatic
#2A1C62 #3F2991 #5337C1 #7963D2 #A292E0

Accessibility & contrast

On white

7.82
#5337C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5337C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5337C1
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5337C1#FFFFFF#000000##FFFFFF
##5337C11.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C5
Deuteranopia (green-blind)
#004EBE
Tritanopia (blue-blind)
#1A5C78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5337c1;
/* rgb */ color: rgb(83, 55, 193);
/* oklch */ color: oklch(45.9% 0.202 284.5);
Tailwind
colors: {
  custom: {
    50: '#8f71d5',
    500: '#5337c1',
    950: '#000000',
  },
}
SCSS
$custom: #5337c1;
$custom-light: #8f71d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5337c1",
  "rgb": {
    "r": 83,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 252.174,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45946,
    "c": 0.20205,
    "h": 284.5
  },
  "luminance": 0.08422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5337C1

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

Preview Lab → · Contrast checker → · Palette generator →

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