#502FA6#502FA6

#502FA6 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.179 H 289.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#502FA6
RGBrgb(80, 47, 166)
HSLhsl(257, 56%, 42%)
HSVhsv(257, 72%, 65%)
CMYKcmyk(51.8%, 71.7%, 0%, 34.9%)
CIE-LABlab(30.62, 44.23, -58.85)
CIE-LCHlch(30.62, 73.61, 306.93°)
OKLaboklab(42.14% 0.0584 -0.169)
OKLCHoklch(42.14% 0.179 289.1)
XYZxyz(11.2057, 6.4912, 36.7315)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FA6 #85A62F
analogous
#2F49A6 #502FA6 #8C2FA6
triadic
#502FA6 #A6502F #2FA650
tetradic
#502FA6 #A62F49 #85A62F #2FA68C
square
#502FA6 #A62F49 #85A62F #2FA68C
split-complementary
#502FA6 #A68C2F #49A62F
monochromatic
#221447 #392176 #502FA6 #6C47CB #9277D8

Accessibility & contrast

On white

9.14
#502FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502FA6
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FA6#FFFFFF#000000##FFFFFF
##502FA61.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#314E67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502fa6;
/* rgb */ color: rgb(80, 47, 166);
/* oklch */ color: oklch(42.1% 0.179 289.1);
Tailwind
colors: {
  custom: {
    50: '#8a6ac1',
    500: '#502fa6',
    950: '#000000',
  },
}
SCSS
$custom: #502fa6;
$custom-light: #8a6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#502fa6",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 256.639,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42136,
    "c": 0.1788,
    "h": 289.1
  },
  "luminance": 0.06492
}

Semantic roles & 50–950 ramp

primary
#502FA6
secondary
#AAC170
accent
#DF49B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #502FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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