#503C8B#503C8B

#503C8B is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.0% C 0.126 H 291.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#503C8B
RGBrgb(80, 60, 139)
HSLhsl(255, 40%, 39%)
HSVhsv(255, 57%, 55%)
CMYKcmyk(42.4%, 56.8%, 0%, 45.5%)
CIE-LABlab(31.35, 28.62, -41.20)
CIE-LCHlch(31.35, 50.17, 304.79°)
OKLaboklab(42.01% 0.0466 -0.1171)
OKLCHoklch(42.01% 0.126 291.7)
XYZxyz(9.5831, 6.8010, 25.2289)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503C8B #778B3C
analogous
#3C508B #503C8B #783C8B
triadic
#503C8B #8B503C #3C8B50
tetradic
#503C8B #8B3C50 #778B3C #3C8B78
square
#503C8B #8B3C50 #778B3C #3C8B78
split-complementary
#503C8B #8B783C #508B3C
monochromatic
#1F1736 #372A60 #503C8B #6A51B4 #8E7BC6

Accessibility & contrast

On white

8.90
#503C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#503C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503C8B
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503C8B#FFFFFF#000000##FFFFFF
##503C8B1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#194889
Tritanopia (blue-blind)
#404D5D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #503c8b;
/* rgb */ color: rgb(80, 60, 139);
/* oklch */ color: oklch(42.0% 0.126 291.7);
Tailwind
colors: {
  custom: {
    50: '#8572ad',
    500: '#503c8b',
    950: '#000000',
  },
}
SCSS
$custom: #503c8b;
$custom-light: #8572ad;
$custom-dark: #000000;
JSON
{
  "hex": "#503c8b",
  "rgb": {
    "r": 80,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 255.19,
    "s": 39.698,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.1261,
    "h": 291.7
  },
  "luminance": 0.06801
}

Semantic roles & 50–950 ramp

primary
#503C8B
secondary
#A0B073
accent
#D058B1
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #503C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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