#502EAB#502EAB

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

Color values

HEX#502EAB
RGBrgb(80, 46, 171)
HSLhsl(256, 58%, 43%)
HSVhsv(256, 73%, 67%)
CMYKcmyk(53.2%, 73.1%, 0%, 32.9%)
CIE-LABlab(30.88, 46.20, -61.43)
CIE-LCHlch(30.88, 76.87, 306.94°)
OKLaboklab(42.46% 0.0582 -0.1766)
OKLCHoklch(42.46% 0.186 288.2)
XYZxyz(11.6338, 6.5992, 39.1809)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EAB #89AB2E
analogous
#2E4AAB #502EAB #8F2EAB
triadic
#502EAB #AB502E #2EAB50
tetradic
#502EAB #AB2E4A #89AB2E #2EAB8F
square
#502EAB #AB2E4A #89AB2E #2EAB8F
split-complementary
#502EAB #AB8F2E #4AAB2E
monochromatic
#23144B #39217B #502EAB #6D48CE #9379DB

Accessibility & contrast

On white

9.05
#502EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#502EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EAB
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EAB#FFFFFF#000000##FFFFFF
##502EAB1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#2D506A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502eab;
/* rgb */ color: rgb(80, 46, 171);
/* oklch */ color: oklch(42.5% 0.186 288.2);
Tailwind
colors: {
  custom: {
    50: '#8b6ac5',
    500: '#502eab',
    950: '#000000',
  },
}
SCSS
$custom: #502eab;
$custom-light: #8b6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#502eab",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 256.32,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42455,
    "c": 0.18592,
    "h": 288.2
  },
  "luminance": 0.066
}

Semantic roles & 50–950 ramp

primary
#502EAB
secondary
#ADC372
accent
#E147B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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