#502FA4#502FA4

#502FA4 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.176 H 289.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#502FA4
RGBrgb(80, 47, 164)
HSLhsl(257, 55%, 41%)
HSVhsv(257, 71%, 64%)
CMYKcmyk(51.2%, 71.3%, 0%, 35.7%)
CIE-LABlab(30.44, 43.65, -57.93)
CIE-LCHlch(30.44, 72.53, 307.00°)
OKLaboklab(41.96% 0.0588 -0.1663)
OKLCHoklch(41.96% 0.176 289.5)
XYZxyz(11.0237, 6.4184, 35.7728)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FA4 #83A42F
analogous
#2F49A4 #502FA4 #8B2FA4
triadic
#502FA4 #A4502F #2FA450
tetradic
#502FA4 #A42F49 #83A42F #2FA48B
square
#502FA4 #A42F49 #83A42F #2FA48B
split-complementary
#502FA4 #A48B2F #49A42F
monochromatic
#221445 #392174 #502FA4 #6B46CA #9176D8

Accessibility & contrast

On white

9.20
#502FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502FA4
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FA4#FFFFFF#000000##FFFFFF
##502FA41.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#324D66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502fa4;
/* rgb */ color: rgb(80, 47, 164);
/* oklch */ color: oklch(42.0% 0.176 289.5);
Tailwind
colors: {
  custom: {
    50: '#896ac0',
    500: '#502fa4',
    950: '#000000',
  },
}
SCSS
$custom: #502fa4;
$custom-light: #896ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#502fa4",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 256.923,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41957,
    "c": 0.17639,
    "h": 289.5
  },
  "luminance": 0.06419
}

Semantic roles & 50–950 ramp

primary
#502FA4
secondary
#A9C06F
accent
#DF49B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #502FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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