#502AA3#502AA3

#502AA3 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.181 H 290.5°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#502AA3
RGBrgb(80, 42, 163)
HSLhsl(259, 59%, 40%)
HSVhsv(259, 74%, 64%)
CMYKcmyk(50.9%, 74.2%, 0%, 36.1%)
CIE-LABlab(29.43, 45.97, -58.99)
CIE-LCHlch(29.43, 74.78, 307.93°)
OKLaboklab(41.21% 0.0635 -0.1694)
OKLCHoklch(41.21% 0.181 290.5)
XYZxyz(10.7452, 6.0053, 35.2362)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA3 #7DA32A
analogous
#2A41A3 #502AA3 #8C2AA3
triadic
#502AA3 #A3502A #2AA350
tetradic
#502AA3 #A32A41 #7DA32A #2AA38C
square
#502AA3 #A32A41 #7DA32A #2AA38C
split-complementary
#502AA3 #A38C2A #41A32A
monochromatic
#201142 #381D72 #502AA3 #6A3DCD #906EDA

Accessibility & contrast

On white

9.54
#502AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#502AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA3
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA3#FFFFFF#000000##FFFFFF
##502AA31.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#334A64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502aa3;
/* rgb */ color: rgb(80, 42, 163);
/* oklch */ color: oklch(41.2% 0.181 290.5);
Tailwind
colors: {
  custom: {
    50: '#8a67bf',
    500: '#502aa3',
    950: '#000000',
  },
}
SCSS
$custom: #502aa3;
$custom-light: #8a67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa3",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 258.843,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.18089,
    "h": 290.5
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#502AA3
secondary
#A5C068
accent
#E246B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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