#502DB5#502DB5

#502DB5 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.199 H 286.5°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#502DB5
RGBrgb(80, 45, 181)
HSLhsl(255, 60%, 44%)
HSVhsv(255, 75%, 71%)
CMYKcmyk(55.8%, 75.1%, 0%, 29%)
CIE-LABlab(31.62, 49.59, -66.19)
CIE-LCHlch(31.62, 82.70, 306.84°)
OKLaboklab(43.26% 0.0566 -0.1905)
OKLCHoklch(43.26% 0.199 286.5)
XYZxyz(12.5846, 6.9177, 44.3792)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DB5 #92B52D
analogous
#2D4EB5 #502DB5 #942DB5
triadic
#502DB5 #B5502D #2DB550
tetradic
#502DB5 #B52D4E #92B52D #2DB594
square
#502DB5 #B52D4E #92B52D #2DB594
split-complementary
#502DB5 #B5942D #4EB52D
monochromatic
#251553 #3A2184 #502DB5 #6F4DD3 #977EDF

Accessibility & contrast

On white

8.81
#502DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#502DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DB5
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DB5#FFFFFF#000000##FFFFFF
##502DB51.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#22536F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502db5;
/* rgb */ color: rgb(80, 45, 181);
/* oklch */ color: oklch(43.3% 0.199 286.5);
Tailwind
colors: {
  custom: {
    50: '#8c6acc',
    500: '#502db5',
    950: '#000000',
  },
}
SCSS
$custom: #502db5;
$custom-light: #8c6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#502db5",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 255.441,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4326,
    "c": 0.19871,
    "h": 286.5
  },
  "luminance": 0.06918
}

Semantic roles & 50–950 ramp

primary
#502DB5
secondary
#B3C776
accent
#E344BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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