#503170#503170

#503170 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.2% C 0.107 H 304.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#503170
RGBrgb(80, 49, 112)
HSLhsl(270, 39%, 32%)
HSVhsv(270, 56%, 44%)
CMYKcmyk(28.6%, 56.3%, 0%, 56.1%)
CIE-LABlab(26.94, 27.75, -31.33)
CIE-LCHlch(26.94, 41.85, 311.53°)
OKLaboklab(38.18% 0.0607 -0.0882)
OKLCHoklch(38.18% 0.107 304.5)
XYZxyz(7.3306, 5.0720, 15.9189)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503170 #517031
analogous
#313270 #503170 #703170
triadic
#503170 #705031 #317050
tetradic
#503170 #703132 #517031 #317070
square
#503170 #703132 #517031 #317070
split-complementary
#503170 #707031 #327031
monochromatic
#130C1B #321E45 #503170 #6E449B #8D61BA

Accessibility & contrast

On white

10.42
#503170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#503170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503170
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503170#FFFFFF#000000##FFFFFF
##5031701.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3F72
Deuteranopia (green-blind)
#26406E
Tritanopia (blue-blind)
#4A3D4B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #503170;
/* rgb */ color: rgb(80, 49, 112);
/* oklch */ color: oklch(38.2% 0.107 304.5);
Tailwind
colors: {
  custom: {
    50: '#836a99',
    500: '#503170',
    950: '#000000',
  },
}
SCSS
$custom: #503170;
$custom-light: #836a99;
$custom-dark: #000000;
JSON
{
  "hex": "#503170",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 269.524,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38178,
    "c": 0.10706,
    "h": 304.5
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#503170
secondary
#7FA15C
accent
#CF5995
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #503170

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

Preview Lab → · Contrast checker → · Palette generator →

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