#502EA4#502EA4

#502EA4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.178 H 289.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#502EA4
RGBrgb(80, 46, 164)
HSLhsl(257, 56%, 41%)
HSVhsv(257, 72%, 64%)
CMYKcmyk(51.2%, 72%, 0%, 35.7%)
CIE-LABlab(30.25, 44.18, -58.24)
CIE-LCHlch(30.25, 73.10, 307.18°)
OKLaboklab(41.82% 0.0597 -0.1672)
OKLCHoklch(41.82% 0.178 289.7)
XYZxyz(10.9842, 6.3393, 35.7596)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EA4 #82A42E
analogous
#2E47A4 #502EA4 #8B2EA4
triadic
#502EA4 #A4502E #2EA450
tetradic
#502EA4 #A42E47 #82A42E #2EA48B
square
#502EA4 #A42E47 #82A42E #2EA48B
split-complementary
#502EA4 #A48B2E #47A42E
monochromatic
#211344 #392174 #502EA4 #6B45CB #9174D8

Accessibility & contrast

On white

9.26
#502EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#502EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EA4
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EA4#FFFFFF#000000##FFFFFF
##502EA41.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#324D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ea4;
/* rgb */ color: rgb(80, 46, 164);
/* oklch */ color: oklch(41.8% 0.178 289.7);
Tailwind
colors: {
  custom: {
    50: '#896ac0',
    500: '#502ea4',
    950: '#000000',
  },
}
SCSS
$custom: #502ea4;
$custom-light: #896ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#502ea4",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 257.288,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41821,
    "c": 0.17756,
    "h": 289.7
  },
  "luminance": 0.0634
}

Semantic roles & 50–950 ramp

primary
#502EA4
secondary
#A8C06E
accent
#DF48B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #502EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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