#502DA9#502DA9

#502DA9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.185 H 288.8°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#502DA9
RGBrgb(80, 45, 169)
HSLhsl(257, 58%, 42%)
HSVhsv(257, 73%, 66%)
CMYKcmyk(52.7%, 73.4%, 0%, 33.7%)
CIE-LABlab(30.51, 46.14, -60.83)
CIE-LCHlch(30.51, 76.35, 307.18°)
OKLaboklab(42.14% 0.0595 -0.1748)
OKLCHoklch(42.14% 0.185 288.8)
XYZxyz(11.4060, 6.4463, 38.1717)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DA9 #86A92D
analogous
#2D48A9 #502DA9 #8E2DA9
triadic
#502DA9 #A9502D #2DA950
tetradic
#502DA9 #A92D48 #86A92D #2DA98E
square
#502DA9 #A92D48 #86A92D #2DA98E
split-complementary
#502DA9 #A98E2D #48A92D
monochromatic
#221348 #392079 #502DA9 #6C46CE #9276DA

Accessibility & contrast

On white

9.17
#502DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#502DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DA9
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DA9#FFFFFF#000000##FFFFFF
##502DA91.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#2E4E68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502da9;
/* rgb */ color: rgb(80, 45, 169);
/* oklch */ color: oklch(42.1% 0.185 288.8);
Tailwind
colors: {
  custom: {
    50: '#8a69c4',
    500: '#502da9',
    950: '#000000',
  },
}
SCSS
$custom: #502da9;
$custom-light: #8a69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#502da9",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 256.935,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42142,
    "c": 0.18465,
    "h": 288.8
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#502DA9
secondary
#ABC26F
accent
#E147B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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