#504183#504183

#504183 is a dark, moderate violet. Relative luminance 0.071; OKLCH L 42.4% C 0.107 H 291.7°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#504183
RGBrgb(80, 65, 131)
HSLhsl(254, 34%, 38%)
HSVhsv(254, 50%, 51%)
CMYKcmyk(38.9%, 50.4%, 0%, 48.6%)
CIE-LABlab(32.09, 23.07, -35.07)
CIE-LCHlch(32.09, 41.98, 303.34°)
OKLaboklab(42.39% 0.0394 -0.0991)
OKLCHoklch(42.39% 0.107 291.7)
XYZxyz(9.2942, 7.1245, 22.3538)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504183 #748341
analogous
#415383 #504183 #714183
triadic
#504183 #835041 #418350
tetradic
#504183 #834153 #748341 #418371
square
#504183 #834153 #748341 #418371
split-complementary
#504183 #837141 #538341
monochromatic
#1E1831 #372D5A #504183 #6956AB #8E7FBF

Accessibility & contrast

On white

8.66
#504183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#504183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504183
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504183#FFFFFF#000000##FFFFFF
##5041831.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284D85
Deuteranopia (green-blind)
#2A4A81
Tritanopia (blue-blind)
#434E5C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #504183;
/* rgb */ color: rgb(80, 65, 131);
/* oklch */ color: oklch(42.4% 0.107 291.7);
Tailwind
colors: {
  custom: {
    50: '#8476a7',
    500: '#504183',
    950: '#000000',
  },
}
SCSS
$custom: #504183;
$custom-light: #8476a7;
$custom-dark: #000000;
JSON
{
  "hex": "#504183",
  "rgb": {
    "r": 80,
    "g": 65,
    "b": 131
  },
  "hsl": {
    "h": 253.636,
    "s": 33.673,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.10668,
    "h": 291.7
  },
  "luminance": 0.07125
}

Semantic roles & 50–950 ramp

primary
#504183
secondary
#9EAA76
accent
#CA5EB1
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #504183

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

Preview Lab → · Contrast checker → · Palette generator →

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