#5338AD#5338AD

#5338AD is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.3% C 0.176 H 287.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5338AD
RGBrgb(83, 56, 173)
HSLhsl(254, 51%, 45%)
HSVhsv(254, 68%, 68%)
CMYKcmyk(52%, 67.6%, 0%, 32.2%)
CIE-LABlab(33.32, 41.85, -58.63)
CIE-LCHlch(33.32, 72.03, 305.52°)
OKLaboklab(44.32% 0.0531 -0.1683)
OKLCHoklch(44.32% 0.176 287.5)
XYZxyz(12.5221, 7.6839, 40.3504)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338AD #92AD38
analogous
#3858AD #5338AD #8D38AD
triadic
#5338AD #AD5338 #38AD53
tetradic
#5338AD #AD3858 #92AD38 #38AD8D
square
#5338AD #AD3858 #92AD38 #38AD8D
split-complementary
#5338AD #AD8D38 #58AD38
monochromatic
#271A51 #3D297F #5338AD #7359C9 #9A87D8

Accessibility & contrast

On white

8.28
#5338AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5338AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338AD
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338AD#FFFFFF#000000##FFFFFF
##5338AD1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#004BAB
Tritanopia (blue-blind)
#31556E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5338ad;
/* rgb */ color: rgb(83, 56, 173);
/* oklch */ color: oklch(44.3% 0.176 287.5);
Tailwind
colors: {
  custom: {
    50: '#8c70c6',
    500: '#5338ad',
    950: '#000000',
  },
}
SCSS
$custom: #5338ad;
$custom-light: #8c70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5338ad",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 253.846,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44321,
    "c": 0.17645,
    "h": 287.5
  },
  "luminance": 0.07684
}

Semantic roles & 50–950 ramp

primary
#5338AD
secondary
#B3C27F
accent
#DB4DBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5338AD

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

Preview Lab → · Contrast checker → · Palette generator →

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