#502EA3#502EA3

#502EA3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.176 H 289.9°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#502EA3
RGBrgb(80, 46, 163)
HSLhsl(257, 56%, 41%)
HSVhsv(257, 72%, 64%)
CMYKcmyk(50.9%, 71.8%, 0%, 36.1%)
CIE-LABlab(30.17, 43.89, -57.78)
CIE-LCHlch(30.17, 72.56, 307.22°)
OKLaboklab(41.73% 0.0599 -0.1659)
OKLCHoklch(41.73% 0.176 289.9)
XYZxyz(10.8942, 6.3033, 35.2859)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EA3 #81A32E
analogous
#2E46A3 #502EA3 #8A2EA3
triadic
#502EA3 #A3502E #2EA350
tetradic
#502EA3 #A32E46 #81A32E #2EA38A
square
#502EA3 #A32E46 #81A32E #2EA38A
split-complementary
#502EA3 #A38A2E #46A32E
monochromatic
#211344 #392173 #502EA3 #6B44CA #9174D8

Accessibility & contrast

On white

9.29
#502EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#502EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EA3
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EA3#FFFFFF#000000##FFFFFF
##502EA31.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#334C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ea3;
/* rgb */ color: rgb(80, 46, 163);
/* oklch */ color: oklch(41.7% 0.176 289.9);
Tailwind
colors: {
  custom: {
    50: '#896abf',
    500: '#502ea3',
    950: '#000000',
  },
}
SCSS
$custom: #502ea3;
$custom-light: #896abf;
$custom-dark: #000000;
JSON
{
  "hex": "#502ea3",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 257.436,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41732,
    "c": 0.17635,
    "h": 289.9
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#502EA3
secondary
#A8BF6D
accent
#DF49B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #502EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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