#5338BF#5338BF

#5338BF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.199 H 284.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5338BF
RGBrgb(83, 56, 191)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(56.5%, 70.7%, 0%, 25.1%)
CIE-LABlab(34.86, 47.22, -66.77)
CIE-LCHlch(34.86, 81.78, 305.27°)
OKLaboklab(45.9% 0.05 -0.1921)
OKLCHoklch(45.9% 0.199 284.6)
XYZxyz(14.3826, 8.4281, 50.1490)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338BF #A4BF38
analogous
#3860BF #5338BF #9638BF
triadic
#5338BF #BF5338 #38BF53
tetradic
#5338BF #BF3860 #A4BF38 #38BF96
square
#5338BF #BF3860 #A4BF38 #38BF96
split-complementary
#5338BF #BF9638 #60BF38
monochromatic
#2A1C60 #3E2A90 #5338BF #7963D1 #A292DF

Accessibility & contrast

On white

7.82
#5338BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5338BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338BF
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338BF#FFFFFF#000000##FFFFFF
##5338BF1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#1D5C77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5338bf;
/* rgb */ color: rgb(83, 56, 191);
/* oklch */ color: oklch(45.9% 0.199 284.6);
Tailwind
colors: {
  custom: {
    50: '#8f71d3',
    500: '#5338bf',
    950: '#000000',
  },
}
SCSS
$custom: #5338bf;
$custom-light: #8f71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5338bf",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 252,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45902,
    "c": 0.19855,
    "h": 284.6
  },
  "luminance": 0.08429
}

Semantic roles & 50–950 ramp

primary
#5338BF
secondary
#BDCA89
accent
#DE4AC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5338BF

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

Preview Lab → · Contrast checker → · Palette generator →

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