#503A9B#503A9B

#503A9B is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.9% C 0.151 H 288.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#503A9B
RGBrgb(80, 58, 155)
HSLhsl(254, 46%, 42%)
HSVhsv(254, 63%, 61%)
CMYKcmyk(48.4%, 62.6%, 0%, 39.2%)
CIE-LABlab(32.03, 34.68, -49.90)
CIE-LCHlch(32.03, 60.77, 304.80°)
OKLaboklab(42.87% 0.0487 -0.1427)
OKLCHoklch(42.87% 0.151 288.8)
XYZxyz(10.7360, 7.0977, 31.8083)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503A9B #859B3A
analogous
#3A559B #503A9B #813A9B
triadic
#503A9B #9B503A #3A9B50
tetradic
#503A9B #9B3A55 #859B3A #3A9B81
square
#503A9B #9B3A55 #859B3A #3A9B81
split-complementary
#503A9B #9B813A #559B3A
monochromatic
#221942 #39296E #503A9B #6C53BF #9280CF

Accessibility & contrast

On white

8.68
#503A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#503A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503A9B
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503A9B#FFFFFF#000000##FFFFFF
##503A9B1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#375165
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #503a9b;
/* rgb */ color: rgb(80, 58, 155);
/* oklch */ color: oklch(42.9% 0.151 288.8);
Tailwind
colors: {
  custom: {
    50: '#8771b9',
    500: '#503a9b',
    950: '#000000',
  },
}
SCSS
$custom: #503a9b;
$custom-light: #8771b9;
$custom-dark: #000000;
JSON
{
  "hex": "#503a9b",
  "rgb": {
    "r": 80,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 253.608,
    "s": 45.54,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42871,
    "c": 0.1508,
    "h": 288.8
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#503A9B
secondary
#AAB978
accent
#D553B8
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #503A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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