#502CA8#502CA8

#502CA8 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.185 H 289.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#502CA8
RGBrgb(80, 44, 168)
HSLhsl(257, 58%, 42%)
HSVhsv(257, 74%, 66%)
CMYKcmyk(52.4%, 73.8%, 0%, 34.1%)
CIE-LABlab(30.24, 46.37, -60.68)
CIE-LCHlch(30.24, 76.37, 307.39°)
OKLaboklab(41.92% 0.0606 -0.1743)
OKLCHoklch(41.92% 0.185 289.2)
XYZxyz(11.2748, 6.3335, 37.6666)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA8 #84A82C
analogous
#2C46A8 #502CA8 #8E2CA8
triadic
#502CA8 #A8502C #2CA850
tetradic
#502CA8 #A82C46 #84A82C #2CA88E
square
#502CA8 #A82C46 #84A82C #2CA88E
split-complementary
#502CA8 #A88E2C #46A82C
monochromatic
#221347 #391F78 #502CA8 #6C43CE #9274DB

Accessibility & contrast

On white

9.26
#502CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#502CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CA8
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA8#FFFFFF#000000##FFFFFF
##502CA81.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#2F4D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ca8;
/* rgb */ color: rgb(80, 44, 168);
/* oklch */ color: oklch(41.9% 0.185 289.2);
Tailwind
colors: {
  custom: {
    50: '#8a69c3',
    500: '#502ca8',
    950: '#000000',
  },
}
SCSS
$custom: #502ca8;
$custom-light: #8a69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca8",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 257.419,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41921,
    "c": 0.18457,
    "h": 289.2
  },
  "luminance": 0.06334
}

Semantic roles & 50–950 ramp

primary
#502CA8
secondary
#AAC26E
accent
#E246B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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