#5338C2#5338C2

#5338C2 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.2% C 0.202 H 284.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5338C2
RGBrgb(83, 56, 194)
HSLhsl(252, 55%, 49%)
HSVhsv(252, 71%, 76%)
CMYKcmyk(57.2%, 71.1%, 0%, 23.9%)
CIE-LABlab(35.13, 48.12, -68.09)
CIE-LCHlch(35.13, 83.37, 305.25°)
OKLaboklab(46.17% 0.0494 -0.196)
OKLCHoklch(46.17% 0.202 284.2)
XYZxyz(14.7161, 8.5615, 51.9056)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338C2 #A7C238
analogous
#3862C2 #5338C2 #9838C2
triadic
#5338C2 #C25338 #38C253
tetradic
#5338C2 #C23862 #A7C238 #38C298
square
#5338C2 #C23862 #A7C238 #38C298
split-complementary
#5338C2 #C29838 #62C238
monochromatic
#2A1D63 #3F2A93 #5338C2 #7A65D2 #A394E0

Accessibility & contrast

On white

7.74
#5338C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5338C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338C2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338C2#FFFFFF#000000##FFFFFF
##5338C21.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#185D79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5338c2;
/* rgb */ color: rgb(83, 56, 194);
/* oklch */ color: oklch(46.2% 0.202 284.2);
Tailwind
colors: {
  custom: {
    50: '#8f71d6',
    500: '#5338c2',
    950: '#000000',
  },
}
SCSS
$custom: #5338c2;
$custom-light: #8f71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5338c2",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 251.739,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46174,
    "c": 0.20217,
    "h": 284.2
  },
  "luminance": 0.08562
}

Semantic roles & 50–950 ramp

primary
#5338C2
secondary
#BFCB8A
accent
#DF49C1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5338C2

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

Preview Lab → · Contrast checker → · Palette generator →

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