#5338BD#5338BD

#5338BD is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.196 H 284.9°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5338BD
RGBrgb(83, 56, 189)
HSLhsl(252, 54%, 48%)
HSVhsv(252, 70%, 74%)
CMYKcmyk(56.1%, 70.4%, 0%, 25.9%)
CIE-LABlab(34.68, 46.63, -65.88)
CIE-LCHlch(34.68, 80.71, 305.29°)
OKLaboklab(45.72% 0.0504 -0.1895)
OKLCHoklch(45.72% 0.196 284.9)
XYZxyz(14.1640, 8.3406, 48.9978)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338BD #A2BD38
analogous
#3860BD #5338BD #9538BD
triadic
#5338BD #BD5338 #38BD53
tetradic
#5338BD #BD3860 #A2BD38 #38BD95
square
#5338BD #BD3860 #A2BD38 #38BD95
split-complementary
#5338BD #BD9538 #60BD38
monochromatic
#2A1C5F #3E2A8E #5338BD #7862D0 #A191DE

Accessibility & contrast

On white

7.87
#5338BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5338BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338BD
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338BD#FFFFFF#000000##FFFFFF
##5338BD1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#205B76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5338bd;
/* rgb */ color: rgb(83, 56, 189);
/* oklch */ color: oklch(45.7% 0.196 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e71d2',
    500: '#5338bd',
    950: '#000000',
  },
}
SCSS
$custom: #5338bd;
$custom-light: #8e71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5338bd",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 252.18,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45722,
    "c": 0.19614,
    "h": 284.9
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

primary
#5338BD
secondary
#BCC987
accent
#DE4AC0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5338BD

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

Preview Lab → · Contrast checker → · Palette generator →

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