#502FA3#502FA3

#502FA3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.175 H 289.7°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#502FA3
RGBrgb(80, 47, 163)
HSLhsl(257, 55%, 41%)
HSVhsv(257, 71%, 64%)
CMYKcmyk(50.9%, 71.2%, 0%, 36.1%)
CIE-LABlab(30.36, 43.36, -57.47)
CIE-LCHlch(30.36, 71.99, 307.03°)
OKLaboklab(41.87% 0.059 -0.165)
OKLCHoklch(41.87% 0.175 289.7)
XYZxyz(10.9337, 6.3824, 35.2990)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FA3 #82A32F
analogous
#2F48A3 #502FA3 #8A2FA3
triadic
#502FA3 #A3502F #2FA350
tetradic
#502FA3 #A32F48 #82A32F #2FA38A
square
#502FA3 #A32F48 #82A32F #2FA38A
split-complementary
#502FA3 #A38A2F #48A32F
monochromatic
#211444 #392173 #502FA3 #6B46CA #9175D7

Accessibility & contrast

On white

9.22
#502FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#502FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FA3
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FA3#FFFFFF#000000##FFFFFF
##502FA31.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#334D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502fa3;
/* rgb */ color: rgb(80, 47, 163);
/* oklch */ color: oklch(41.9% 0.175 289.7);
Tailwind
colors: {
  custom: {
    50: '#896abf',
    500: '#502fa3',
    950: '#000000',
  },
}
SCSS
$custom: #502fa3;
$custom-light: #896abf;
$custom-dark: #000000;
JSON
{
  "hex": "#502fa3",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 257.069,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41869,
    "c": 0.17518,
    "h": 289.7
  },
  "luminance": 0.06383
}

Semantic roles & 50–950 ramp

primary
#502FA3
secondary
#A8BF6F
accent
#DF49B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #502FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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