#502AA5#502AA5

#502AA5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.183 H 290.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#502AA5
RGBrgb(80, 42, 165)
HSLhsl(259, 59%, 41%)
HSVhsv(259, 75%, 65%)
CMYKcmyk(51.5%, 74.5%, 0%, 35.3%)
CIE-LABlab(29.61, 46.53, -59.90)
CIE-LCHlch(29.61, 75.85, 307.84°)
OKLaboklab(41.39% 0.063 -0.1721)
OKLCHoklch(41.39% 0.183 290.1)
XYZxyz(10.9258, 6.0775, 36.1874)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA5 #7FA52A
analogous
#2A41A5 #502AA5 #8D2AA5
triadic
#502AA5 #A5502A #2AA550
tetradic
#502AA5 #A52A41 #7FA52A #2AA58D
square
#502AA5 #A52A41 #7FA52A #2AA58D
split-complementary
#502AA5 #A58D2A #41A52A
monochromatic
#211143 #381E74 #502AA5 #6B3ECE #906FDA

Accessibility & contrast

On white

9.48
#502AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#502AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA5
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA5#FFFFFF#000000##FFFFFF
##502AA51.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#324B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502aa5;
/* rgb */ color: rgb(80, 42, 165);
/* oklch */ color: oklch(41.4% 0.183 290.1);
Tailwind
colors: {
  custom: {
    50: '#8a67c1',
    500: '#502aa5',
    950: '#000000',
  },
}
SCSS
$custom: #502aa5;
$custom-light: #8a67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa5",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 258.537,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41392,
    "c": 0.18323,
    "h": 290.1
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

primary
#502AA5
secondary
#A6C169
accent
#E345B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #502AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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