#5338BC#5338BC

#5338BC is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.195 H 285.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5338BC
RGBrgb(83, 56, 188)
HSLhsl(252, 54%, 48%)
HSVhsv(252, 70%, 74%)
CMYKcmyk(55.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(34.59, 46.33, -65.43)
CIE-LCHlch(34.59, 80.17, 305.30°)
OKLaboklab(45.63% 0.0506 -0.1882)
OKLCHoklch(45.63% 0.195 285)
XYZxyz(14.0558, 8.2974, 48.4281)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338BC #A1BC38
analogous
#385FBC #5338BC #9538BC
triadic
#5338BC #BC5338 #38BC53
tetradic
#5338BC #BC385F #A1BC38 #38BC95
square
#5338BC #BC385F #A1BC38 #38BC95
split-complementary
#5338BC #BC9538 #5FBC38
monochromatic
#291C5E #3E2A8D #5338BC #7861D0 #A090DE

Accessibility & contrast

On white

7.90
#5338BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5338BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338BC
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338BC#FFFFFF#000000##FFFFFF
##5338BC1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#225B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5338bc;
/* rgb */ color: rgb(83, 56, 188);
/* oklch */ color: oklch(45.6% 0.195 285.0);
Tailwind
colors: {
  custom: {
    50: '#8e71d1',
    500: '#5338bc',
    950: '#000000',
  },
}
SCSS
$custom: #5338bc;
$custom-light: #8e71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5338bc",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 252.273,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45633,
    "c": 0.19493,
    "h": 285
  },
  "luminance": 0.08298
}

Semantic roles & 50–950 ramp

primary
#5338BC
secondary
#BBC987
accent
#DD4ABF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5338BC

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

Preview Lab → · Contrast checker → · Palette generator →

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