#502FA9#502FA9

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

Color values

HEX#502FA9
RGBrgb(80, 47, 169)
HSLhsl(256, 56%, 42%)
HSVhsv(256, 72%, 66%)
CMYKcmyk(52.7%, 72.2%, 0%, 33.7%)
CIE-LABlab(30.88, 45.10, -60.22)
CIE-LCHlch(30.88, 75.23, 306.83°)
OKLaboklab(42.41% 0.0578 -0.173)
OKLCHoklch(42.41% 0.182 288.5)
XYZxyz(11.4841, 6.6025, 38.1977)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FA9 #88A92F
analogous
#2F4BA9 #502FA9 #8D2FA9
triadic
#502FA9 #A9502F #2FA950
tetradic
#502FA9 #A92F4B #88A92F #2FA98D
square
#502FA9 #A92F4B #88A92F #2FA98D
split-complementary
#502FA9 #A98D2F #4BA92F
monochromatic
#231449 #392279 #502FA9 #6C49CC #9379DA

Accessibility & contrast

On white

9.05
#502FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#502FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FA9
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FA9#FFFFFF#000000##FFFFFF
##502FA91.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#2E4F69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502fa9;
/* rgb */ color: rgb(80, 47, 169);
/* oklch */ color: oklch(42.4% 0.182 288.5);
Tailwind
colors: {
  custom: {
    50: '#8a6bc4',
    500: '#502fa9',
    950: '#000000',
  },
}
SCSS
$custom: #502fa9;
$custom-light: #8a6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#502fa9",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 256.23,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.18241,
    "h": 288.5
  },
  "luminance": 0.06603
}

Semantic roles & 50–950 ramp

primary
#502FA9
secondary
#ACC272
accent
#E048B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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