#502AA8#502AA8

#502AA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.187 H 289.5°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#502AA8
RGBrgb(80, 42, 168)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 66%)
CMYKcmyk(52.4%, 75%, 0%, 34.1%)
CIE-LABlab(29.88, 47.38, -61.26)
CIE-LCHlch(29.88, 77.44, 307.72°)
OKLaboklab(41.67% 0.0622 -0.1761)
OKLCHoklch(41.67% 0.187 289.5)
XYZxyz(11.2021, 6.1881, 37.6424)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA8 #82A82A
analogous
#2A43A8 #502AA8 #8F2AA8
triadic
#502AA8 #A8502A #2AA850
tetradic
#502AA8 #A82A43 #82A82A #2AA88F
square
#502AA8 #A82A43 #82A82A #2AA88F
split-complementary
#502AA8 #A88F2A #43A82A
monochromatic
#211246 #391E77 #502AA8 #6B40CF #9171DB

Accessibility & contrast

On white

9.38
#502AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#502AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA8
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA8#FFFFFF#000000##FFFFFF
##502AA81.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#2F4C67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502aa8;
/* rgb */ color: rgb(80, 42, 168);
/* oklch */ color: oklch(41.7% 0.187 289.5);
Tailwind
colors: {
  custom: {
    50: '#8a68c3',
    500: '#502aa8',
    950: '#000000',
  },
}
SCSS
$custom: #502aa8;
$custom-light: #8a68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa8",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 258.095,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41669,
    "c": 0.18673,
    "h": 289.5
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

primary
#502AA8
secondary
#A8C36B
accent
#E345B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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