#5338AC#5338AC

#5338AC is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.2% C 0.175 H 287.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5338AC
RGBrgb(83, 56, 172)
HSLhsl(254, 51%, 45%)
HSVhsv(254, 67%, 67%)
CMYKcmyk(51.7%, 67.4%, 0%, 32.5%)
CIE-LABlab(33.23, 41.55, -58.17)
CIE-LCHlch(33.23, 71.48, 305.54°)
OKLaboklab(44.24% 0.0532 -0.1669)
OKLCHoklch(44.24% 0.175 287.7)
XYZxyz(12.4257, 7.6453, 39.8427)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338AC #91AC38
analogous
#3857AC #5338AC #8D38AC
triadic
#5338AC #AC5338 #38AC53
tetradic
#5338AC #AC3857 #91AC38 #38AC8D
square
#5338AC #AC3857 #91AC38 #38AC8D
split-complementary
#5338AC #AC8D38 #57AC38
monochromatic
#261A50 #3D297E #5338AC #7358C9 #9A87D8

Accessibility & contrast

On white

8.30
#5338AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5338AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338AC
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338AC#FFFFFF#000000##FFFFFF
##5338AC1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#32556D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5338ac;
/* rgb */ color: rgb(83, 56, 172);
/* oklch */ color: oklch(44.2% 0.175 287.7);
Tailwind
colors: {
  custom: {
    50: '#8c70c6',
    500: '#5338ac',
    950: '#000000',
  },
}
SCSS
$custom: #5338ac;
$custom-light: #8c70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5338ac",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 253.966,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44236,
    "c": 0.1752,
    "h": 287.7
  },
  "luminance": 0.07646
}

Semantic roles & 50–950 ramp

primary
#5338AC
secondary
#B2C27E
accent
#DA4DBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5338AC

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

Preview Lab → · Contrast checker → · Palette generator →

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