#502DA7#502DA7

#502DA7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.182 H 289.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#502DA7
RGBrgb(80, 45, 167)
HSLhsl(257, 58%, 42%)
HSVhsv(257, 73%, 65%)
CMYKcmyk(52.1%, 73.1%, 0%, 34.5%)
CIE-LABlab(30.33, 45.57, -59.92)
CIE-LCHlch(30.33, 75.28, 307.25°)
OKLaboklab(41.96% 0.0599 -0.1721)
OKLCHoklch(41.96% 0.182 289.2)
XYZxyz(11.2197, 6.3718, 37.1904)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DA7 #84A72D
analogous
#2D47A7 #502DA7 #8D2DA7
triadic
#502DA7 #A7502D #2DA750
tetradic
#502DA7 #A72D47 #84A72D #2DA78D
square
#502DA7 #A72D47 #84A72D #2DA78D
split-complementary
#502DA7 #A78D2D #47A72D
monochromatic
#221347 #392077 #502DA7 #6C44CD #9275DA

Accessibility & contrast

On white

9.23
#502DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#502DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DA7
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DA7#FFFFFF#000000##FFFFFF
##502DA71.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#304D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502da7;
/* rgb */ color: rgb(80, 45, 167);
/* oklch */ color: oklch(42.0% 0.182 289.2);
Tailwind
colors: {
  custom: {
    50: '#8a69c2',
    500: '#502da7',
    950: '#000000',
  },
}
SCSS
$custom: #502da7;
$custom-light: #8a69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#502da7",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 257.213,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41959,
    "c": 0.18228,
    "h": 289.2
  },
  "luminance": 0.06372
}

Semantic roles & 50–950 ramp

primary
#502DA7
secondary
#AAC16E
accent
#E147B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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