#503D8A#503D8A

#503D8A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.1% C 0.123 H 291.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#503D8A
RGBrgb(80, 61, 138)
HSLhsl(255, 39%, 39%)
HSVhsv(255, 56%, 54%)
CMYKcmyk(42%, 55.8%, 0%, 45.9%)
CIE-LABlab(31.53, 27.70, -40.30)
CIE-LCHlch(31.53, 48.90, 304.50°)
OKLaboklab(42.12% 0.0453 -0.1145)
OKLCHoklch(42.12% 0.123 291.6)
XYZxyz(9.5632, 6.8777, 24.8635)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503D8A #778A3D
analogous
#3D518A #503D8A #773D8A
triadic
#503D8A #8A503D #3D8A50
tetradic
#503D8A #8A3D51 #778A3D #3D8A77
square
#503D8A #8A3D51 #778A3D #3D8A77
split-complementary
#503D8A #8A773D #518A3D
monochromatic
#1F1735 #372A60 #503D8A #6A52B2 #8E7CC5

Accessibility & contrast

On white

8.84
#503D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#503D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503D8A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503D8A#FFFFFF#000000##FFFFFF
##503D8A1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184B8D
Deuteranopia (green-blind)
#1C4988
Tritanopia (blue-blind)
#404D5D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #503d8a;
/* rgb */ color: rgb(80, 61, 138);
/* oklch */ color: oklch(42.1% 0.123 291.6);
Tailwind
colors: {
  custom: {
    50: '#8573ad',
    500: '#503d8a',
    950: '#000000',
  },
}
SCSS
$custom: #503d8a;
$custom-light: #8573ad;
$custom-dark: #000000;
JSON
{
  "hex": "#503d8a",
  "rgb": {
    "r": 80,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 254.805,
    "s": 38.693,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42116,
    "c": 0.12313,
    "h": 291.6
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#503D8A
secondary
#A0AF74
accent
#CF59B2
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #503D8A

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

Preview Lab → · Contrast checker → · Palette generator →

#503D8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva