#502CAE#502CAE

#502CAE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.192 H 288.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#502CAE
RGBrgb(80, 44, 174)
HSLhsl(257, 60%, 43%)
HSVhsv(257, 75%, 68%)
CMYKcmyk(54%, 74.7%, 0%, 31.8%)
CIE-LABlab(30.79, 48.08, -63.37)
CIE-LCHlch(30.79, 79.55, 307.19°)
OKLaboklab(42.48% 0.0591 -0.1822)
OKLCHoklch(42.48% 0.192 288)
XYZxyz(11.8467, 6.5622, 40.6786)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CAE #8AAE2C
analogous
#2C49AE #502CAE #912CAE
triadic
#502CAE #AE502C #2CAE50
tetradic
#502CAE #AE2C49 #8AAE2C #2CAE91
square
#502CAE #AE2C49 #8AAE2C #2CAE91
split-complementary
#502CAE #AE912C #49AE2C
monochromatic
#23134C #3A207D #502CAE #6D47D0 #9478DD

Accessibility & contrast

On white

9.08
#502CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#502CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CAE
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CAE#FFFFFF#000000##FFFFFF
##502CAE1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502cae;
/* rgb */ color: rgb(80, 44, 174);
/* oklch */ color: oklch(42.5% 0.192 288.0);
Tailwind
colors: {
  custom: {
    50: '#8b69c7',
    500: '#502cae',
    950: '#000000',
  },
}
SCSS
$custom: #502cae;
$custom-light: #8b69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#502cae",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 174
  },
  "hsl": {
    "h": 256.615,
    "s": 59.633,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42477,
    "c": 0.1916,
    "h": 288
  },
  "luminance": 0.06563
}

Semantic roles & 50–950 ramp

primary
#502CAE
secondary
#AEC571
accent
#E345B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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