#503174#503174

#503174 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.4% C 0.112 H 302.8°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#503174
RGBrgb(80, 49, 116)
HSLhsl(268, 41%, 32%)
HSVhsv(268, 58%, 45%)
CMYKcmyk(31%, 57.8%, 0%, 54.5%)
CIE-LABlab(27.19, 28.83, -33.47)
CIE-LCHlch(27.19, 44.17, 310.74°)
OKLaboklab(38.45% 0.0609 -0.0945)
OKLCHoklch(38.45% 0.112 302.8)
XYZxyz(7.5583, 5.1631, 17.1180)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503174 #557431
analogous
#313474 #503174 #713174
triadic
#503174 #745031 #317450
tetradic
#503174 #743134 #557431 #317471
square
#503174 #743134 #557431 #317471
split-complementary
#503174 #747131 #347431
monochromatic
#150D1E #321F49 #503174 #6E439F #8C63BD

Accessibility & contrast

On white

10.33
#503174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #503174
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503174#FFFFFF#000000##FFFFFF
##5031741.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174076
Deuteranopia (green-blind)
#224072
Tritanopia (blue-blind)
#493E4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #503174;
/* rgb */ color: rgb(80, 49, 116);
/* oklch */ color: oklch(38.4% 0.112 302.8);
Tailwind
colors: {
  custom: {
    50: '#836a9c',
    500: '#503174',
    950: '#000000',
  },
}
SCSS
$custom: #503174;
$custom-light: #836a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#503174",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 267.761,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38449,
    "c": 0.1124,
    "h": 302.8
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#503174
secondary
#83A45C
accent
#D05798
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #503174

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

Preview Lab → · Contrast checker → · Palette generator →

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