#5338A7#5338A7

#5338A7 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.8% C 0.169 H 288.6°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5338A7
RGBrgb(83, 56, 167)
HSLhsl(255, 50%, 44%)
HSVhsv(255, 66%, 65%)
CMYKcmyk(50.3%, 66.5%, 0%, 34.5%)
CIE-LABlab(32.83, 40.06, -55.84)
CIE-LCHlch(32.83, 68.72, 305.66°)
OKLaboklab(43.82% 0.0539 -0.1601)
OKLCHoklch(43.82% 0.169 288.6)
XYZxyz(11.9545, 7.4568, 37.3611)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338A7 #8CA738
analogous
#3854A7 #5338A7 #8A38A7
triadic
#5338A7 #A75338 #38A753
tetradic
#5338A7 #A73854 #8CA738 #38A78A
square
#5338A7 #A73854 #8CA738 #38A78A
split-complementary
#5338A7 #A78A38 #54A738
monochromatic
#25194B #3C2979 #5338A7 #7156C6 #9884D6

Accessibility & contrast

On white

8.43
#5338A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5338A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338A7
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338A7#FFFFFF#000000##FFFFFF
##5338A71.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#36536A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5338a7;
/* rgb */ color: rgb(83, 56, 167);
/* oklch */ color: oklch(43.8% 0.169 288.6);
Tailwind
colors: {
  custom: {
    50: '#8b70c2',
    500: '#5338a7',
    950: '#000000',
  },
}
SCSS
$custom: #5338a7;
$custom-light: #8b70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5338a7",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 254.595,
    "s": 49.776,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43815,
    "c": 0.16891,
    "h": 288.6
  },
  "luminance": 0.07457
}

Semantic roles & 50–950 ramp

primary
#5338A7
secondary
#AFBF7B
accent
#D94FB8
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0812
muted
#7D7B81

Preview Lab

Preview with #5338A7

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

Preview Lab → · Contrast checker → · Palette generator →

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