#5338C9#5338C9

#5338C9 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.8% C 0.211 H 283.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5338C9
RGBrgb(83, 56, 201)
HSLhsl(251, 57%, 50%)
HSVhsv(251, 72%, 79%)
CMYKcmyk(58.7%, 72.1%, 0%, 21.2%)
CIE-LABlab(35.76, 50.19, -71.14)
CIE-LCHlch(35.76, 87.06, 305.21°)
OKLaboklab(46.82% 0.048 -0.205)
OKLCHoklch(46.82% 0.211 283.2)
XYZxyz(15.5208, 8.8834, 56.1438)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338C9 #AEC938
analogous
#3866C9 #5338C9 #9B38C9
triadic
#5338C9 #C95338 #38C953
tetradic
#5338C9 #C93866 #AEC938 #38C99B
square
#5338C9 #C93866 #AEC938 #38C99B
split-complementary
#5338C9 #C99B38 #66C938
monochromatic
#2B1D6A #3F2A9A #5338C9 #7D68D6 #A698E3

Accessibility & contrast

On white

7.56
#5338C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5338C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338C9
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338C9#FFFFFF#000000##FFFFFF
##5338C91.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CD
Deuteranopia (green-blind)
#004FC6
Tritanopia (blue-blind)
#04607D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5338c9;
/* rgb */ color: rgb(83, 56, 201);
/* oklch */ color: oklch(46.8% 0.211 283.2);
Tailwind
colors: {
  custom: {
    50: '#9071db',
    500: '#5338c9',
    950: '#000000',
  },
}
SCSS
$custom: #5338c9;
$custom-light: #9071db;
$custom-dark: #000000;
JSON
{
  "hex": "#5338c9",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 251.172,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46817,
    "c": 0.21051,
    "h": 283.2
  },
  "luminance": 0.08884
}

Semantic roles & 50–950 ramp

primary
#5338C9
secondary
#C3CF8E
accent
#E147C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5338C9

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

Preview Lab → · Contrast checker → · Palette generator →

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