#5338C1#5338C1

#5338C1 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.1% C 0.201 H 284.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5338C1
RGBrgb(83, 56, 193)
HSLhsl(252, 55%, 49%)
HSVhsv(252, 71%, 76%)
CMYKcmyk(57%, 71%, 0%, 24.3%)
CIE-LABlab(35.04, 47.82, -67.65)
CIE-LCHlch(35.04, 82.84, 305.26°)
OKLaboklab(46.08% 0.0496 -0.1947)
OKLCHoklch(46.08% 0.201 284.3)
XYZxyz(14.6042, 8.5167, 51.3161)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338C1 #A6C138
analogous
#3862C1 #5338C1 #9838C1
triadic
#5338C1 #C15338 #38C153
tetradic
#5338C1 #C13862 #A6C138 #38C198
square
#5338C1 #C13862 #A6C138 #38C198
split-complementary
#5338C1 #C19838 #62C138
monochromatic
#2A1C62 #3F2A92 #5338C1 #7A64D2 #A394E0

Accessibility & contrast

On white

7.77
#5338C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5338C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338C1
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338C1#FFFFFF#000000##FFFFFF
##5338C11.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5338c1;
/* rgb */ color: rgb(83, 56, 193);
/* oklch */ color: oklch(46.1% 0.201 284.3);
Tailwind
colors: {
  custom: {
    50: '#8f71d5',
    500: '#5338c1',
    950: '#000000',
  },
}
SCSS
$custom: #5338c1;
$custom-light: #8f71d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5338c1",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 251.825,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46083,
    "c": 0.20096,
    "h": 284.3
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#5338C1
secondary
#BECB8A
accent
#DE49C1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5338C1

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

Preview Lab → · Contrast checker → · Palette generator →

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