#5338CA#5338CA

#5338CA is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.212 H 283.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5338CA
RGBrgb(83, 56, 202)
HSLhsl(251, 58%, 51%)
HSVhsv(251, 72%, 79%)
CMYKcmyk(58.9%, 72.3%, 0%, 20.8%)
CIE-LABlab(35.85, 50.49, -71.57)
CIE-LCHlch(35.85, 87.59, 305.20°)
OKLaboklab(46.91% 0.0478 -0.2062)
OKLCHoklch(46.91% 0.212 283)
XYZxyz(15.6388, 8.9306, 56.7653)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338CA #AFCA38
analogous
#3866CA #5338CA #9C38CA
triadic
#5338CA #CA5338 #38CA53
tetradic
#5338CA #CA3866 #AFCA38 #38CA9C
square
#5338CA #CA3866 #AFCA38 #38CA9C
split-complementary
#5338CA #CA9C38 #66CA38
monochromatic
#2B1D6B #3E299B #5338CA #7D68D7 #A799E4

Accessibility & contrast

On white

7.54
#5338CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5338CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338CA
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338CA#FFFFFF#000000##FFFFFF
##5338CA1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5338ca;
/* rgb */ color: rgb(83, 56, 202);
/* oklch */ color: oklch(46.9% 0.212 283.0);
Tailwind
colors: {
  custom: {
    50: '#9072db',
    500: '#5338ca',
    950: '#000000',
  },
}
SCSS
$custom: #5338ca;
$custom-light: #9072db;
$custom-dark: #000000;
JSON
{
  "hex": "#5338ca",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 251.096,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46909,
    "c": 0.21169,
    "h": 283
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5338CA

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

Preview Lab → · Contrast checker → · Palette generator →

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