#502C7E#502C7E

#502C7E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.133 H 300.4°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#502C7E
RGBrgb(80, 44, 126)
HSLhsl(266, 48%, 33%)
HSVhsv(266, 65%, 49%)
CMYKcmyk(36.5%, 65.1%, 0%, 50.6%)
CIE-LABlab(26.77, 34.52, -40.48)
CIE-LCHlch(26.77, 53.20, 310.46°)
OKLaboklab(38.36% 0.0675 -0.115)
OKLCHoklch(38.36% 0.133 300.4)
XYZxyz(7.9739, 5.0131, 20.2822)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C7E #5A7E2C
analogous
#2C317E #502C7E #792C7E
triadic
#502C7E #7E502C #2C7E50
tetradic
#502C7E #7E2C31 #5A7E2C #2C7E79
square
#502C7E #7E2C31 #5A7E2C #2C7E79
split-complementary
#502C7E #7E792C #317E2C
monochromatic
#160C23 #331C51 #502C7E #6D3CAB #8C5EC7

Accessibility & contrast

On white

10.49
#502C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#502C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C7E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C7E#FFFFFF#000000##FFFFFF
##502C7E1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#0C3F7C
Tritanopia (blue-blind)
#463E50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502c7e;
/* rgb */ color: rgb(80, 44, 126);
/* oklch */ color: oklch(38.4% 0.133 300.4);
Tailwind
colors: {
  custom: {
    50: '#8567a4',
    500: '#502c7e',
    950: '#000000',
  },
}
SCSS
$custom: #502c7e;
$custom-light: #8567a4;
$custom-dark: #000000;
JSON
{
  "hex": "#502c7e",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 266.341,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38362,
    "c": 0.13334,
    "h": 300.4
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#502C7E
secondary
#88AD59
accent
#D8509C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502C7E

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

Preview Lab → · Contrast checker → · Palette generator →

#502C7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva