#503187#503187

#503187 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.8% C 0.137 H 296.2°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#503187
RGBrgb(80, 49, 135)
HSLhsl(262, 47%, 36%)
HSVhsv(262, 64%, 53%)
CMYKcmyk(40.7%, 63.7%, 0%, 47.1%)
CIE-LABlab(28.51, 34.14, -43.30)
CIE-LCHlch(28.51, 55.14, 308.26°)
OKLaboklab(39.84% 0.0606 -0.1233)
OKLCHoklch(39.84% 0.137 296.2)
XYZxyz(8.7786, 5.6512, 23.5453)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503187 #688731
analogous
#313D87 #503187 #7B3187
triadic
#503187 #875031 #318750
tetradic
#503187 #87313D #688731 #31877B
square
#503187 #87313D #688731 #31877B
split-complementary
#503187 #877B31 #3D8731
monochromatic
#1B102D #35215A #503187 #6B41B4 #8C6AC9

Accessibility & contrast

On white

9.86
#503187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#503187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503187
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503187#FFFFFF#000000##FFFFFF
##5031871.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#024285
Tritanopia (blue-blind)
#424457
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #503187;
/* rgb */ color: rgb(80, 49, 135);
/* oklch */ color: oklch(39.8% 0.137 296.2);
Tailwind
colors: {
  custom: {
    50: '#856bab',
    500: '#503187',
    950: '#000000',
  },
}
SCSS
$custom: #503187;
$custom-light: #856bab;
$custom-dark: #000000;
JSON
{
  "hex": "#503187",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 135
  },
  "hsl": {
    "h": 261.628,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39837,
    "c": 0.1374,
    "h": 296.2
  },
  "luminance": 0.05651
}

Semantic roles & 50–950 ramp

primary
#503187
secondary
#95B064
accent
#D651A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #503187

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

Preview Lab → · Contrast checker → · Palette generator →

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