#503181#503181

#503181 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.4% C 0.130 H 298.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#503181
RGBrgb(80, 49, 129)
HSLhsl(263, 45%, 35%)
HSVhsv(263, 62%, 51%)
CMYKcmyk(38%, 62%, 0%, 49.4%)
CIE-LABlab(28.08, 32.43, -40.25)
CIE-LCHlch(28.08, 51.69, 308.86°)
OKLaboklab(39.38% 0.061 -0.1143)
OKLCHoklch(39.38% 0.13 298.1)
XYZxyz(8.3680, 5.4870, 21.3828)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503181 #628131
analogous
#313A81 #503181 #783181
triadic
#503181 #815031 #318150
tetradic
#503181 #81313A #628131 #318178
square
#503181 #81313A #628131 #318178
split-complementary
#503181 #817831 #3A8131
monochromatic
#190F28 #342055 #503181 #6C42AD #8C67C5

Accessibility & contrast

On white

10.01
#503181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#503181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503181
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503181#FFFFFF#000000##FFFFFF
##5031811.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#12417F
Tritanopia (blue-blind)
#454254
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #503181;
/* rgb */ color: rgb(80, 49, 129);
/* oklch */ color: oklch(39.4% 0.130 298.1);
Tailwind
colors: {
  custom: {
    50: '#856ba6',
    500: '#503181',
    950: '#000000',
  },
}
SCSS
$custom: #503181;
$custom-light: #856ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#503181",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 263.25,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39382,
    "c": 0.12958,
    "h": 298.1
  },
  "luminance": 0.05487
}

Semantic roles & 50–950 ramp

primary
#503181
secondary
#8FAD61
accent
#D553A2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #503181

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

Preview Lab → · Contrast checker → · Palette generator →

#503181 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva