#503F8A#503F8A

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

Color values

HEX#503F8A
RGBrgb(80, 63, 138)
HSLhsl(254, 37%, 39%)
HSVhsv(254, 54%, 54%)
CMYKcmyk(42%, 54.3%, 0%, 45.9%)
CIE-LABlab(32.02, 26.44, -39.51)
CIE-LCHlch(32.02, 47.54, 303.79°)
OKLaboklab(42.49% 0.0427 -0.1121)
OKLCHoklch(42.49% 0.12 290.8)
XYZxyz(9.6720, 7.0952, 24.8997)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503F8A #798A3F
analogous
#3F548A #503F8A #763F8A
triadic
#503F8A #8A503F #3F8A50
tetradic
#503F8A #8A3F54 #798A3F #3F8A76
square
#503F8A #8A3F54 #798A3F #3F8A76
split-complementary
#503F8A #8A763F #548A3F
monochromatic
#1F1936 #382C60 #503F8A #6A55B1 #8F7FC5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##503F8A#FFFFFF#000000##FFFFFF
##503F8A1.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)
#1D4D8D
Deuteranopia (green-blind)
#204A88
Tritanopia (blue-blind)
#404F5E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #503f8a;
/* rgb */ color: rgb(80, 63, 138);
/* oklch */ color: oklch(42.5% 0.120 290.8);
Tailwind
colors: {
  custom: {
    50: '#8574ad',
    500: '#503f8a',
    950: '#000000',
  },
}
SCSS
$custom: #503f8a;
$custom-light: #8574ad;
$custom-dark: #000000;
JSON
{
  "hex": "#503f8a",
  "rgb": {
    "r": 80,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 253.6,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42485,
    "c": 0.12,
    "h": 290.8
  },
  "luminance": 0.07095
}

Semantic roles & 50–950 ramp

primary
#503F8A
secondary
#A2AF76
accent
#CD5BB3
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #503F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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