#502EAA#502EAA

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

Color values

HEX#502EAA
RGBrgb(80, 46, 170)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 73%, 67%)
CMYKcmyk(52.9%, 72.9%, 0%, 33.3%)
CIE-LABlab(30.79, 45.91, -60.98)
CIE-LCHlch(30.79, 76.33, 306.98°)
OKLaboklab(42.36% 0.0584 -0.1752)
OKLCHoklch(42.36% 0.185 288.4)
XYZxyz(11.5388, 6.5612, 38.6809)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EAA #88AA2E
analogous
#2E4AAA #502EAA #8E2EAA
triadic
#502EAA #AA502E #2EAA50
tetradic
#502EAA #AA2E4A #88AA2E #2EAA8E
square
#502EAA #AA2E4A #88AA2E #2EAA8E
split-complementary
#502EAA #AA8E2E #4AAA2E
monochromatic
#23144A #39217A #502EAA #6C48CD #9378DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##502EAA#FFFFFF#000000##FFFFFF
##502EAA1.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)
#004BAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#2D4F69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502eaa;
/* rgb */ color: rgb(80, 46, 170);
/* oklch */ color: oklch(42.4% 0.185 288.4);
Tailwind
colors: {
  custom: {
    50: '#8a6ac4',
    500: '#502eaa',
    950: '#000000',
  },
}
SCSS
$custom: #502eaa;
$custom-light: #8a6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#502eaa",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 256.452,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42364,
    "c": 0.18473,
    "h": 288.4
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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