#502FA5#502FA5

#502FA5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.178 H 289.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#502FA5
RGBrgb(80, 47, 165)
HSLhsl(257, 56%, 42%)
HSVhsv(257, 72%, 65%)
CMYKcmyk(51.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(30.53, 43.94, -58.39)
CIE-LCHlch(30.53, 73.07, 306.96°)
OKLaboklab(42.05% 0.0586 -0.1676)
OKLCHoklch(42.05% 0.178 289.3)
XYZxyz(11.1143, 6.4546, 36.2503)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FA5 #84A52F
analogous
#2F49A5 #502FA5 #8B2FA5
triadic
#502FA5 #A5502F #2FA550
tetradic
#502FA5 #A52F49 #84A52F #2FA58B
square
#502FA5 #A52F49 #84A52F #2FA58B
split-complementary
#502FA5 #A58B2F #49A52F
monochromatic
#221446 #392175 #502FA5 #6C47CB #9276D8

Accessibility & contrast

On white

9.17
#502FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#502FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FA5
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FA5#FFFFFF#000000##FFFFFF
##502FA51.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502fa5;
/* rgb */ color: rgb(80, 47, 165);
/* oklch */ color: oklch(42.0% 0.178 289.3);
Tailwind
colors: {
  custom: {
    50: '#8a6ac1',
    500: '#502fa5',
    950: '#000000',
  },
}
SCSS
$custom: #502fa5;
$custom-light: #8a6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#502fa5",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 256.78,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42047,
    "c": 0.17759,
    "h": 289.3
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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