#503D8D#503D8D

#503D8D is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.3% C 0.127 H 290.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#503D8D
RGBrgb(80, 61, 141)
HSLhsl(254, 40%, 40%)
HSVhsv(254, 57%, 55%)
CMYKcmyk(43.3%, 56.7%, 0%, 44.7%)
CIE-LABlab(31.73, 28.60, -41.83)
CIE-LCHlch(31.73, 50.67, 304.36°)
OKLaboklab(42.33% 0.0454 -0.119)
OKLCHoklch(42.33% 0.127 290.9)
XYZxyz(9.7834, 6.9657, 26.0232)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503D8D #7A8D3D
analogous
#3D528D #503D8D #783D8D
triadic
#503D8D #8D503D #3D8D50
tetradic
#503D8D #8D3D52 #7A8D3D #3D8D78
square
#503D8D #8D3D52 #7A8D3D #3D8D78
split-complementary
#503D8D #8D783D #528D3D
monochromatic
#201838 #382B62 #503D8D #6A53B4 #8F7DC7

Accessibility & contrast

On white

8.77
#503D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#503D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503D8D
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503D8D#FFFFFF#000000##FFFFFF
##503D8D1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#18498B
Tritanopia (blue-blind)
#3F4E5F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #503d8d;
/* rgb */ color: rgb(80, 61, 141);
/* oklch */ color: oklch(42.3% 0.127 290.9);
Tailwind
colors: {
  custom: {
    50: '#8573af',
    500: '#503d8d',
    950: '#000000',
  },
}
SCSS
$custom: #503d8d;
$custom-light: #8573af;
$custom-dark: #000000;
JSON
{
  "hex": "#503d8d",
  "rgb": {
    "r": 80,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 254.25,
    "s": 39.604,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42331,
    "c": 0.12734,
    "h": 290.9
  },
  "luminance": 0.06966
}

Semantic roles & 50–950 ramp

primary
#503D8D
secondary
#A3B175
accent
#CF58B3
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #503D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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