#502DAE#502DAE

#502DAE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.191 H 287.8°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#502DAE
RGBrgb(80, 45, 174)
HSLhsl(256, 59%, 43%)
HSVhsv(256, 74%, 68%)
CMYKcmyk(54%, 74.1%, 0%, 31.8%)
CIE-LABlab(30.97, 47.58, -63.08)
CIE-LCHlch(30.97, 79.01, 307.03°)
OKLaboklab(42.6% 0.0583 -0.1814)
OKLCHoklch(42.6% 0.191 287.8)
XYZxyz(11.8844, 6.6376, 40.6912)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DAE #8BAE2D
analogous
#2D4AAE #502DAE #902DAE
triadic
#502DAE #AE502D #2DAE50
tetradic
#502DAE #AE2D4A #8BAE2D #2DAE90
square
#502DAE #AE2D4A #8BAE2D #2DAE90
split-complementary
#502DAE #AE902D #4AAE2D
monochromatic
#23144D #3A207D #502DAE #6D48D0 #9479DC

Accessibility & contrast

On white

9.02
#502DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#502DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DAE
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DAE#FFFFFF#000000##FFFFFF
##502DAE1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#2A506B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502dae;
/* rgb */ color: rgb(80, 45, 174);
/* oklch */ color: oklch(42.6% 0.191 287.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ac7',
    500: '#502dae',
    950: '#000000',
  },
}
SCSS
$custom: #502dae;
$custom-light: #8b6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#502dae",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 256.279,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42603,
    "c": 0.19054,
    "h": 287.8
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#502DAE
secondary
#AEC472
accent
#E246B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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