#503F87#503F87

#503F87 is a dark, moderate violet. Relative luminance 0.070; OKLCH L 42.3% C 0.116 H 291.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#503F87
RGBrgb(80, 63, 135)
HSLhsl(254, 36%, 39%)
HSVhsv(254, 53%, 53%)
CMYKcmyk(40.7%, 53.3%, 0%, 47.1%)
CIE-LABlab(31.83, 25.54, -37.97)
CIE-LCHlch(31.83, 45.76, 303.93°)
OKLaboklab(42.28% 0.0425 -0.1076)
OKLCHoklch(42.28% 0.116 291.5)
XYZxyz(9.4578, 7.0095, 23.7716)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503F87 #76873F
analogous
#3F5287 #503F87 #743F87
triadic
#503F87 #87503F #3F8750
tetradic
#503F87 #873F52 #76873F #3F8774
square
#503F87 #873F52 #76873F #3F8774
split-complementary
#503F87 #87743F #52873F
monochromatic
#1F1834 #372C5D #503F87 #6A54AF #8E7EC3

Accessibility & contrast

On white

8.74
#503F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#503F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503F87
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503F87#FFFFFF#000000##FFFFFF
##503F871.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C8A
Deuteranopia (green-blind)
#234985
Tritanopia (blue-blind)
#414E5D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #503f87;
/* rgb */ color: rgb(80, 63, 135);
/* oklch */ color: oklch(42.3% 0.116 291.5);
Tailwind
colors: {
  custom: {
    50: '#8474aa',
    500: '#503f87',
    950: '#000000',
  },
}
SCSS
$custom: #503f87;
$custom-light: #8474aa;
$custom-dark: #000000;
JSON
{
  "hex": "#503f87",
  "rgb": {
    "r": 80,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 254.167,
    "s": 36.364,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42278,
    "c": 0.11571,
    "h": 291.5
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#503F87
secondary
#A0AD75
accent
#CC5BB2
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #503F87

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

Preview Lab → · Contrast checker → · Palette generator →

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