#5338BA#5338BA

#5338BA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.193 H 285.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5338BA
RGBrgb(83, 56, 186)
HSLhsl(252, 54%, 47%)
HSVhsv(252, 70%, 73%)
CMYKcmyk(55.4%, 69.9%, 0%, 27.1%)
CIE-LABlab(34.42, 45.73, -64.54)
CIE-LCHlch(34.42, 79.10, 305.32°)
OKLaboklab(45.45% 0.051 -0.1856)
OKLCHoklch(45.45% 0.193 285.3)
XYZxyz(13.8417, 8.2117, 47.3005)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338BA #9FBA38
analogous
#385EBA #5338BA #9438BA
triadic
#5338BA #BA5338 #38BA53
tetradic
#5338BA #BA385E #9FBA38 #38BA94
square
#5338BA #BA385E #9FBA38 #38BA94
split-complementary
#5338BA #BA9438 #5EBA38
monochromatic
#291C5C #3E2A8B #5338BA #7760CF #9F8FDD

Accessibility & contrast

On white

7.95
#5338BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5338BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338BA
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338BA#FFFFFF#000000##FFFFFF
##5338BA1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#245A75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5338ba;
/* rgb */ color: rgb(83, 56, 186);
/* oklch */ color: oklch(45.5% 0.193 285.3);
Tailwind
colors: {
  custom: {
    50: '#8e71d0',
    500: '#5338ba',
    950: '#000000',
  },
}
SCSS
$custom: #5338ba;
$custom-light: #8e71d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5338ba",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 252.462,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45454,
    "c": 0.1925,
    "h": 285.3
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5338BA

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

Preview Lab → · Contrast checker → · Palette generator →

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