#5338C4#5338C4

#5338C4 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.4% C 0.205 H 283.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5338C4
RGBrgb(83, 56, 196)
HSLhsl(252, 56%, 49%)
HSVhsv(252, 71%, 77%)
CMYKcmyk(57.7%, 71.4%, 0%, 23.1%)
CIE-LABlab(35.31, 48.71, -68.96)
CIE-LCHlch(35.31, 84.43, 305.23°)
OKLaboklab(46.36% 0.049 -0.1986)
OKLCHoklch(46.36% 0.205 283.9)
XYZxyz(14.9422, 8.6519, 53.0965)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338C4 #A9C438
analogous
#3863C4 #5338C4 #9938C4
triadic
#5338C4 #C45338 #38C453
tetradic
#5338C4 #C43863 #A9C438 #38C499
square
#5338C4 #C43863 #A9C438 #38C499
split-complementary
#5338C4 #C49938 #63C438
monochromatic
#2B1D65 #3F2A94 #5338C4 #7B66D3 #A496E1

Accessibility & contrast

On white

7.69
#5338C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5338C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338C4
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338C4#FFFFFF#000000##FFFFFF
##5338C41.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)
#0057C8
Deuteranopia (green-blind)
#004EC1
Tritanopia (blue-blind)
#145E7A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5338c4;
/* rgb */ color: rgb(83, 56, 196);
/* oklch */ color: oklch(46.4% 0.205 283.9);
Tailwind
colors: {
  custom: {
    50: '#8f71d7',
    500: '#5338c4',
    950: '#000000',
  },
}
SCSS
$custom: #5338c4;
$custom-light: #8f71d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5338c4",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 251.571,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46356,
    "c": 0.20455,
    "h": 283.9
  },
  "luminance": 0.08653
}

Semantic roles & 50–950 ramp

primary
#5338C4
secondary
#C0CC8C
accent
#DF49C2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5338C4

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

Preview Lab → · Contrast checker → · Palette generator →

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