#502AB5#502AB5

#502AB5 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 42.9% C 0.202 H 286.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#502AB5
RGBrgb(80, 42, 181)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 77%, 71%)
CMYKcmyk(55.8%, 76.8%, 0%, 29%)
CIE-LABlab(31.11, 51.05, -67.03)
CIE-LCHlch(31.11, 84.25, 307.29°)
OKLaboklab(42.9% 0.0588 -0.1929)
OKLCHoklch(42.9% 0.202 286.9)
XYZxyz(12.4742, 6.6969, 44.3424)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AB5 #8FB52A
analogous
#2A49B5 #502AB5 #952AB5
triadic
#502AB5 #B5502A #2AB550
tetradic
#502AB5 #B52A49 #8FB52A #2AB595
square
#502AB5 #B52A49 #8FB52A #2AB595
split-complementary
#502AB5 #B5952A #49B52A
monochromatic
#241352 #3A1E83 #502AB5 #6E48D4 #9579E0

Accessibility & contrast

On white

8.98
#502AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#502AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AB5
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AB5#FFFFFF#000000##FFFFFF
##502AB51.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#22526E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502ab5;
/* rgb */ color: rgb(80, 42, 181);
/* oklch */ color: oklch(42.9% 0.202 286.9);
Tailwind
colors: {
  custom: {
    50: '#8c68cc',
    500: '#502ab5',
    950: '#000000',
  },
}
SCSS
$custom: #502ab5;
$custom-light: #8c68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#502ab5",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 256.403,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42901,
    "c": 0.20168,
    "h": 286.9
  },
  "luminance": 0.06698
}

Semantic roles & 50–950 ramp

primary
#502AB5
secondary
#B1C873
accent
#E542B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #502AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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