#502EA9#502EA9

#502EA9 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.184 H 288.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#502EA9
RGBrgb(80, 46, 169)
HSLhsl(257, 57%, 42%)
HSVhsv(257, 73%, 66%)
CMYKcmyk(52.7%, 72.8%, 0%, 33.7%)
CIE-LABlab(30.70, 45.62, -60.53)
CIE-LCHlch(30.70, 75.80, 307.01°)
OKLaboklab(42.27% 0.0586 -0.1739)
OKLCHoklch(42.27% 0.184 288.6)
XYZxyz(11.4446, 6.5235, 38.1846)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EA9 #87A92E
analogous
#2E4AA9 #502EA9 #8D2EA9
triadic
#502EA9 #A9502E #2EA950
tetradic
#502EA9 #A92E4A #87A92E #2EA98D
square
#502EA9 #A92E4A #87A92E #2EA98D
split-complementary
#502EA9 #A98D2E #4AA92E
monochromatic
#221449 #392179 #502EA9 #6C47CD #9377DA

Accessibility & contrast

On white

9.11
#502EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#502EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EA9
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EA9#FFFFFF#000000##FFFFFF
##502EA91.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#2E4F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502ea9;
/* rgb */ color: rgb(80, 46, 169);
/* oklch */ color: oklch(42.3% 0.184 288.6);
Tailwind
colors: {
  custom: {
    50: '#8a6ac4',
    500: '#502ea9',
    950: '#000000',
  },
}
SCSS
$custom: #502ea9;
$custom-light: #8a6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#502ea9",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 256.585,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42273,
    "c": 0.18354,
    "h": 288.6
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#502EA9
secondary
#ACC271
accent
#E047B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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