#5338C8#5338C8

#5338C8 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.209 H 283.3°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5338C8
RGBrgb(83, 56, 200)
HSLhsl(251, 57%, 50%)
HSVhsv(251, 72%, 78%)
CMYKcmyk(58.5%, 72%, 0%, 21.6%)
CIE-LABlab(35.67, 49.90, -70.71)
CIE-LCHlch(35.67, 86.54, 305.21°)
OKLaboklab(46.72% 0.0482 -0.2037)
OKLCHoklch(46.72% 0.209 283.3)
XYZxyz(15.4036, 8.8365, 55.5263)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338C8 #ADC838
analogous
#3865C8 #5338C8 #9B38C8
triadic
#5338C8 #C85338 #38C853
tetradic
#5338C8 #C83865 #ADC838 #38C89B
square
#5338C8 #C83865 #ADC838 #38C89B
split-complementary
#5338C8 #C89B38 #65C838
monochromatic
#2B1D69 #3F2A99 #5338C8 #7C68D5 #A698E3

Accessibility & contrast

On white

7.59
#5338C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5338C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338C8
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338C8#FFFFFF#000000##FFFFFF
##5338C81.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#085F7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5338c8;
/* rgb */ color: rgb(83, 56, 200);
/* oklch */ color: oklch(46.7% 0.209 283.3);
Tailwind
colors: {
  custom: {
    50: '#9071da',
    500: '#5338c8',
    950: '#000000',
  },
}
SCSS
$custom: #5338c8;
$custom-light: #9071da;
$custom-dark: #000000;
JSON
{
  "hex": "#5338c8",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 251.25,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46724,
    "c": 0.20932,
    "h": 283.3
  },
  "luminance": 0.08837
}

Semantic roles & 50–950 ramp

primary
#5338C8
secondary
#C2CE8E
accent
#E048C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5338C8

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

Preview Lab → · Contrast checker → · Palette generator →

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