#502DAF#502DAF

#502DAF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.192 H 287.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#502DAF
RGBrgb(80, 45, 175)
HSLhsl(256, 59%, 43%)
HSVhsv(256, 74%, 69%)
CMYKcmyk(54.3%, 74.3%, 0%, 31.4%)
CIE-LABlab(31.06, 47.87, -63.53)
CIE-LCHlch(31.06, 79.54, 307.00°)
OKLaboklab(42.7% 0.0581 -0.1827)
OKLCHoklch(42.7% 0.192 287.6)
XYZxyz(11.9822, 6.6768, 41.2065)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DAF #8CAF2D
analogous
#2D4BAF #502DAF #912DAF
triadic
#502DAF #AF502D #2DAF50
tetradic
#502DAF #AF2D4B #8CAF2D #2DAF91
square
#502DAF #AF2D4B #8CAF2D #2DAF91
split-complementary
#502DAF #AF912D #4BAF2D
monochromatic
#23144E #3A207E #502DAF #6D49D0 #947ADD

Accessibility & contrast

On white

8.99
#502DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502DAF
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DAF#FFFFFF#000000##FFFFFF
##502DAF1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#29516C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502daf;
/* rgb */ color: rgb(80, 45, 175);
/* oklch */ color: oklch(42.7% 0.192 287.6);
Tailwind
colors: {
  custom: {
    50: '#8b6ac8',
    500: '#502daf',
    950: '#000000',
  },
}
SCSS
$custom: #502daf;
$custom-light: #8b6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#502daf",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 256.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42696,
    "c": 0.19172,
    "h": 287.6
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

primary
#502DAF
secondary
#AFC573
accent
#E246B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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