#502EAE#502EAE

#502EAE is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.189 H 287.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#502EAE
RGBrgb(80, 46, 174)
HSLhsl(256, 58%, 43%)
HSVhsv(256, 74%, 68%)
CMYKcmyk(54%, 73.6%, 0%, 31.8%)
CIE-LABlab(31.15, 47.07, -62.78)
CIE-LCHlch(31.15, 78.47, 306.86°)
OKLaboklab(42.73% 0.0575 -0.1805)
OKLCHoklch(42.73% 0.189 287.7)
XYZxyz(11.9230, 6.7149, 40.7040)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EAE #8CAE2E
analogous
#2E4CAE #502EAE #902EAE
triadic
#502EAE #AE502E #2EAE50
tetradic
#502EAE #AE2E4C #8CAE2E #2EAE90
square
#502EAE #AE2E4C #8CAE2E #2EAE90
split-complementary
#502EAE #AE902E #4CAE2E
monochromatic
#23144D #3A217E #502EAE #6D4ACF #947ADC

Accessibility & contrast

On white

8.96
#502EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#502EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EAE
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EAE#FFFFFF#000000##FFFFFF
##502EAE1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502eae;
/* rgb */ color: rgb(80, 46, 174);
/* oklch */ color: oklch(42.7% 0.189 287.7);
Tailwind
colors: {
  custom: {
    50: '#8b6ac7',
    500: '#502eae',
    950: '#000000',
  },
}
SCSS
$custom: #502eae;
$custom-light: #8b6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#502eae",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 255.938,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.18946,
    "h": 287.7
  },
  "luminance": 0.06715
}

Semantic roles & 50–950 ramp

primary
#502EAE
secondary
#AFC474
accent
#E146B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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