#5338CD#5338CD

#5338CD is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.215 H 282.7°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5338CD
RGBrgb(83, 56, 205)
HSLhsl(251, 60%, 51%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(59.5%, 72.7%, 0%, 19.6%)
CIE-LABlab(36.13, 51.38, -72.86)
CIE-LCHlch(36.13, 89.15, 305.19°)
OKLaboklab(47.19% 0.0472 -0.21)
OKLCHoklch(47.19% 0.215 282.7)
XYZxyz(15.9975, 9.0740, 58.6542)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338CD #B2CD38
analogous
#3867CD #5338CD #9D38CD
triadic
#5338CD #CD5338 #38CD53
tetradic
#5338CD #CD3867 #B2CD38 #38CD9D
square
#5338CD #CD3867 #B2CD38 #38CD9D
split-complementary
#5338CD #CD9D38 #67CD38
monochromatic
#2B1C6F #3E28A0 #5338CD #7D69D9 #A89AE6

Accessibility & contrast

On white

7.46
#5338CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5338CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338CD
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338CD#FFFFFF#000000##FFFFFF
##5338CD1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0050CA
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5338cd;
/* rgb */ color: rgb(83, 56, 205);
/* oklch */ color: oklch(47.2% 0.215 282.7);
Tailwind
colors: {
  custom: {
    50: '#9172dd',
    500: '#5338cd',
    950: '#000000',
  },
}
SCSS
$custom: #5338cd;
$custom-light: #9172dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5338cd",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 250.872,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47189,
    "c": 0.21522,
    "h": 282.7
  },
  "luminance": 0.09075
}

Semantic roles & 50–950 ramp

primary
#5338CD
secondary
#C5D18F
accent
#E345C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5338CD

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

Preview Lab → · Contrast checker → · Palette generator →

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