#503188#503188

#503188 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.9% C 0.139 H 295.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#503188
RGBrgb(80, 49, 136)
HSLhsl(261, 47%, 36%)
HSVhsv(261, 64%, 53%)
CMYKcmyk(41.2%, 64%, 0%, 46.7%)
CIE-LABlab(28.59, 34.42, -43.80)
CIE-LCHlch(28.59, 55.71, 308.17°)
OKLaboklab(39.92% 0.0606 -0.1248)
OKLCHoklch(39.92% 0.139 295.9)
XYZxyz(8.8494, 5.6795, 23.9178)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503188 #698831
analogous
#313E88 #503188 #7C3188
triadic
#503188 #885031 #318850
tetradic
#503188 #88313E #698831 #31887C
square
#503188 #88313E #698831 #31887C
split-complementary
#503188 #887C31 #3E8831
monochromatic
#1B112E #36215B #503188 #6A41B5 #8C6AC9

Accessibility & contrast

On white

9.83
#503188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#503188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503188
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503188#FFFFFF#000000##FFFFFF
##5031881.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #503188;
/* rgb */ color: rgb(80, 49, 136);
/* oklch */ color: oklch(39.9% 0.139 295.9);
Tailwind
colors: {
  custom: {
    50: '#866bab',
    500: '#503188',
    950: '#000000',
  },
}
SCSS
$custom: #503188;
$custom-light: #866bab;
$custom-dark: #000000;
JSON
{
  "hex": "#503188",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 261.379,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39915,
    "c": 0.13871,
    "h": 295.9
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#503188
secondary
#95B164
accent
#D751A7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #503188

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

Preview Lab → · Contrast checker → · Palette generator →

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