#5338BE#5338BE

#5338BE is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.197 H 284.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5338BE
RGBrgb(83, 56, 190)
HSLhsl(252, 54%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(56.3%, 70.5%, 0%, 25.5%)
CIE-LABlab(34.77, 46.92, -66.32)
CIE-LCHlch(34.77, 81.24, 305.28°)
OKLaboklab(45.81% 0.0502 -0.1908)
OKLCHoklch(45.81% 0.197 284.7)
XYZxyz(14.2729, 8.3842, 49.5714)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338BE #A3BE38
analogous
#3860BE #5338BE #9638BE
triadic
#5338BE #BE5338 #38BE53
tetradic
#5338BE #BE3860 #A3BE38 #38BE96
square
#5338BE #BE3860 #A3BE38 #38BE96
split-complementary
#5338BE #BE9638 #60BE38
monochromatic
#2A1C5F #3E2A8F #5338BE #7962D1 #A192DF

Accessibility & contrast

On white

7.84
#5338BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5338BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338BE
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338BE#FFFFFF#000000##FFFFFF
##5338BE1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#1F5C77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5338be;
/* rgb */ color: rgb(83, 56, 190);
/* oklch */ color: oklch(45.8% 0.197 284.7);
Tailwind
colors: {
  custom: {
    50: '#8e71d3',
    500: '#5338be',
    950: '#000000',
  },
}
SCSS
$custom: #5338be;
$custom-light: #8e71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5338be",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 252.09,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45812,
    "c": 0.19734,
    "h": 284.7
  },
  "luminance": 0.08385
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5338BE

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

Preview Lab → · Contrast checker → · Palette generator →

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