#5338BB#5338BB

#5338BB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.194 H 285.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5338BB
RGBrgb(83, 56, 187)
HSLhsl(252, 54%, 48%)
HSVhsv(252, 70%, 73%)
CMYKcmyk(55.6%, 70.1%, 0%, 26.7%)
CIE-LABlab(34.51, 46.03, -64.99)
CIE-LCHlch(34.51, 79.64, 305.31°)
OKLaboklab(45.54% 0.0508 -0.1869)
OKLCHoklch(45.54% 0.194 285.2)
XYZxyz(13.9484, 8.2544, 47.8623)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338BB #A0BB38
analogous
#385FBB #5338BB #9438BB
triadic
#5338BB #BB5338 #38BB53
tetradic
#5338BB #BB385F #A0BB38 #38BB94
square
#5338BB #BB385F #A0BB38 #38BB94
split-complementary
#5338BB #BB9438 #5FBB38
monochromatic
#291C5D #3E2A8C #5338BB #7761D0 #A090DE

Accessibility & contrast

On white

7.92
#5338BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5338BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338BB
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338BB#FFFFFF#000000##FFFFFF
##5338BB1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#235A75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5338bb;
/* rgb */ color: rgb(83, 56, 187);
/* oklch */ color: oklch(45.5% 0.194 285.2);
Tailwind
colors: {
  custom: {
    50: '#8e71d1',
    500: '#5338bb',
    950: '#000000',
  },
}
SCSS
$custom: #5338bb;
$custom-light: #8e71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5338bb",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 252.366,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45543,
    "c": 0.19371,
    "h": 285.2
  },
  "luminance": 0.08255
}

Semantic roles & 50–950 ramp

primary
#5338BB
secondary
#BBC886
accent
#DD4BBF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5338BB

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

Preview Lab → · Contrast checker → · Palette generator →

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