#503DAB#503DAB

#503DAB is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.7% C 0.168 H 285.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#503DAB
RGBrgb(80, 61, 171)
HSLhsl(250, 47%, 45%)
HSVhsv(250, 64%, 67%)
CMYKcmyk(53.2%, 64.3%, 0%, 32.9%)
CIE-LABlab(33.95, 37.79, -56.42)
CIE-LCHlch(33.95, 67.91, 303.82°)
OKLaboklab(44.66% 0.0442 -0.1619)
OKLCHoklch(44.66% 0.168 285.3)
XYZxyz(12.3255, 7.9826, 39.4115)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503DAB #98AB3D
analogous
#3D61AB #503DAB #873DAB
triadic
#503DAB #AB503D #3DAB50
tetradic
#503DAB #AB3D61 #98AB3D #3DAB87
square
#503DAB #AB3D61 #98AB3D #3DAB87
split-complementary
#503DAB #AB873D #61AB3D
monochromatic
#261D51 #3B2D7E #503DAB #715FC6 #998CD6

Accessibility & contrast

On white

8.09
#503DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#503DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503DAB
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503DAB#FFFFFF#000000##FFFFFF
##503DAB1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#2B586E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #503dab;
/* rgb */ color: rgb(80, 61, 171);
/* oklch */ color: oklch(44.7% 0.168 285.3);
Tailwind
colors: {
  custom: {
    50: '#8974c5',
    500: '#503dab',
    950: '#000000',
  },
}
SCSS
$custom: #503dab;
$custom-light: #8974c5;
$custom-dark: #000000;
JSON
{
  "hex": "#503dab",
  "rgb": {
    "r": 80,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 250.364,
    "s": 47.414,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44658,
    "c": 0.16781,
    "h": 285.3
  },
  "luminance": 0.07983
}

Semantic roles & 50–950 ramp

primary
#503DAB
secondary
#B6C183
accent
#D751C0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #503DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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