#503173#503173

#503173 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.4% C 0.111 H 303.2°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#503173
RGBrgb(80, 49, 115)
HSLhsl(268, 40%, 32%)
HSVhsv(268, 57%, 45%)
CMYKcmyk(30.4%, 57.4%, 0%, 54.9%)
CIE-LABlab(27.13, 28.56, -32.94)
CIE-LCHlch(27.13, 43.59, 310.93°)
OKLaboklab(38.38% 0.0609 -0.0929)
OKLCHoklch(38.38% 0.111 303.2)
XYZxyz(7.5004, 5.1399, 16.8133)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503173 #547331
analogous
#313373 #503173 #713173
triadic
#503173 #735031 #317350
tetradic
#503173 #733133 #547331 #317371
square
#503173 #733133 #547331 #317371
split-complementary
#503173 #737131 #337331
monochromatic
#140C1D #321F48 #503173 #6E439E #8C62BC

Accessibility & contrast

On white

10.36
#503173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#503173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503173
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503173#FFFFFF#000000##FFFFFF
##5031731.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183F75
Deuteranopia (green-blind)
#234071
Tritanopia (blue-blind)
#4A3E4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #503173;
/* rgb */ color: rgb(80, 49, 115);
/* oklch */ color: oklch(38.4% 0.111 303.2);
Tailwind
colors: {
  custom: {
    50: '#836a9c',
    500: '#503173',
    950: '#000000',
  },
}
SCSS
$custom: #503173;
$custom-light: #836a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#503173",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 268.182,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3838,
    "c": 0.11105,
    "h": 303.2
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#503173
secondary
#82A45C
accent
#D05898
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #503173

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

Preview Lab → · Contrast checker → · Palette generator →

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