#5338C5#5338C5

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

Color values

HEX#5338C5
RGBrgb(83, 56, 197)
HSLhsl(251, 56%, 50%)
HSVhsv(251, 72%, 77%)
CMYKcmyk(57.9%, 71.6%, 0%, 22.7%)
CIE-LABlab(35.40, 49.01, -69.40)
CIE-LCHlch(35.40, 84.96, 305.23°)
OKLaboklab(46.45% 0.0488 -0.1999)
OKLCHoklch(46.45% 0.206 283.7)
XYZxyz(15.0564, 8.6976, 53.6979)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338C5 #AAC538
analogous
#3864C5 #5338C5 #9938C5
triadic
#5338C5 #C55338 #38C553
tetradic
#5338C5 #C53864 #AAC538 #38C599
square
#5338C5 #C53864 #AAC538 #38C599
split-complementary
#5338C5 #C59938 #64C538
monochromatic
#2B1D66 #3F2A95 #5338C5 #7B67D4 #A596E1

Accessibility & contrast

On white

7.66
#5338C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5338C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338C5
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338C5#FFFFFF#000000##FFFFFF
##5338C51.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#115E7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5338c5;
/* rgb */ color: rgb(83, 56, 197);
/* oklch */ color: oklch(46.4% 0.206 283.7);
Tailwind
colors: {
  custom: {
    50: '#9071d8',
    500: '#5338c5',
    950: '#000000',
  },
}
SCSS
$custom: #5338c5;
$custom-light: #9071d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5338c5",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 251.489,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46448,
    "c": 0.20575,
    "h": 283.7
  },
  "luminance": 0.08699
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5338C5

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

Preview Lab → · Contrast checker → · Palette generator →

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