#502DB9#502DB9

#502DB9 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.6% C 0.203 H 285.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#502DB9
RGBrgb(80, 45, 185)
HSLhsl(255, 61%, 45%)
HSVhsv(255, 76%, 73%)
CMYKcmyk(56.8%, 75.7%, 0%, 27.5%)
CIE-LABlab(32.00, 50.73, -67.93)
CIE-LCHlch(32.00, 84.79, 306.75°)
OKLaboklab(43.64% 0.0555 -0.1956)
OKLCHoklch(43.64% 0.203 285.8)
XYZxyz(13.0010, 7.0843, 46.5719)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DB9 #96B92D
analogous
#2D50B9 #502DB9 #962DB9
triadic
#502DB9 #B9502D #2DB950
tetradic
#502DB9 #B92D50 #96B92D #2DB996
square
#502DB9 #B92D50 #96B92D #2DB996
split-complementary
#502DB9 #B9962D #50B92D
monochromatic
#251557 #3B2188 #502DB9 #704FD4 #9880E0

Accessibility & contrast

On white

8.69
#502DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#502DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DB9
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DB9#FFFFFF#000000##FFFFFF
##502DB91.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#1D5471
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502db9;
/* rgb */ color: rgb(80, 45, 185);
/* oklch */ color: oklch(43.6% 0.203 285.8);
Tailwind
colors: {
  custom: {
    50: '#8d6acf',
    500: '#502db9',
    950: '#000000',
  },
}
SCSS
$custom: #502db9;
$custom-light: #8d6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#502db9",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 255,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43642,
    "c": 0.20334,
    "h": 285.8
  },
  "luminance": 0.07085
}

Semantic roles & 50–950 ramp

primary
#502DB9
secondary
#B5C979
accent
#E444BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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