#503287#503287

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

Color values

HEX#503287
RGBrgb(80, 50, 135)
HSLhsl(261, 46%, 36%)
HSVhsv(261, 63%, 53%)
CMYKcmyk(40.7%, 63%, 0%, 47.1%)
CIE-LABlab(28.74, 33.55, -42.94)
CIE-LCHlch(28.74, 54.49, 308.00°)
OKLaboklab(40% 0.0594 -0.1222)
OKLCHoklch(40% 0.136 295.9)
XYZxyz(8.8209, 5.7358, 23.5593)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503287 #698732
analogous
#323F87 #503287 #7B3287
triadic
#503287 #875032 #328750
tetradic
#503287 #87323F #698732 #32877B
square
#503287 #87323F #698732 #32877B
split-complementary
#503287 #877B32 #3F8732
monochromatic
#1B112E #36215A #503287 #6A43B4 #8C6BC8

Accessibility & contrast

On white

9.78
#503287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#503287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503287
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503287#FFFFFF#000000##FFFFFF
##5032871.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#064385
Tritanopia (blue-blind)
#424557
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #503287;
/* rgb */ color: rgb(80, 50, 135);
/* oklch */ color: oklch(40.0% 0.136 295.9);
Tailwind
colors: {
  custom: {
    50: '#856bab',
    500: '#503287',
    950: '#000000',
  },
}
SCSS
$custom: #503287;
$custom-light: #856bab;
$custom-dark: #000000;
JSON
{
  "hex": "#503287",
  "rgb": {
    "r": 80,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 261.176,
    "s": 45.946,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39998,
    "c": 0.13592,
    "h": 295.9
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#503287
secondary
#95B065
accent
#D652A7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #503287

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

Preview Lab → · Contrast checker → · Palette generator →

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