#502EA2#502EA2

#502EA2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.175 H 290.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#502EA2
RGBrgb(80, 46, 162)
HSLhsl(258, 56%, 41%)
HSVhsv(258, 72%, 64%)
CMYKcmyk(50.6%, 71.6%, 0%, 36.5%)
CIE-LABlab(30.08, 43.60, -57.32)
CIE-LCHlch(30.08, 72.02, 307.26°)
OKLaboklab(41.64% 0.0601 -0.1645)
OKLCHoklch(41.64% 0.175 290.1)
XYZxyz(10.8050, 6.2676, 34.8159)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EA2 #80A22E
analogous
#2E46A2 #502EA2 #8A2EA2
triadic
#502EA2 #A2502E #2EA250
tetradic
#502EA2 #A22E46 #80A22E #2EA28A
square
#502EA2 #A22E46 #80A22E #2EA28A
split-complementary
#502EA2 #A28A2E #46A22E
monochromatic
#211343 #382072 #502EA2 #6B43CA #9073D7

Accessibility & contrast

On white

9.32
#502EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#502EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EA2
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EA2#FFFFFF#000000##FFFFFF
##502EA21.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#344C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ea2;
/* rgb */ color: rgb(80, 46, 162);
/* oklch */ color: oklch(41.6% 0.175 290.1);
Tailwind
colors: {
  custom: {
    50: '#896abe',
    500: '#502ea2',
    950: '#000000',
  },
}
SCSS
$custom: #502ea2;
$custom-light: #896abe;
$custom-dark: #000000;
JSON
{
  "hex": "#502ea2",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 257.586,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41643,
    "c": 0.17515,
    "h": 290.1
  },
  "luminance": 0.06268
}

Semantic roles & 50–950 ramp

primary
#502EA2
secondary
#A7BF6D
accent
#DF49B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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