#502DAB#502DAB

#502DAB is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.187 H 288.4°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#502DAB
RGBrgb(80, 45, 171)
HSLhsl(257, 58%, 42%)
HSVhsv(257, 74%, 67%)
CMYKcmyk(53.2%, 73.7%, 0%, 32.9%)
CIE-LABlab(30.69, 46.72, -61.73)
CIE-LCHlch(30.69, 77.42, 307.12°)
OKLaboklab(42.33% 0.059 -0.1774)
OKLCHoklch(42.33% 0.187 288.4)
XYZxyz(11.5952, 6.5220, 39.1681)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DAB #88AB2D
analogous
#2D49AB #502DAB #8F2DAB
triadic
#502DAB #AB502D #2DAB50
tetradic
#502DAB #AB2D49 #88AB2D #2DAB8F
square
#502DAB #AB2D49 #88AB2D #2DAB8F
split-complementary
#502DAB #AB8F2D #49AB2D
monochromatic
#23144A #39207B #502DAB #6C47CE #9377DB

Accessibility & contrast

On white

9.11
#502DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#502DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DAB
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DAB#FFFFFF#000000##FFFFFF
##502DAB1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#2D4F69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502dab;
/* rgb */ color: rgb(80, 45, 171);
/* oklch */ color: oklch(42.3% 0.187 288.4);
Tailwind
colors: {
  custom: {
    50: '#8b69c5',
    500: '#502dab',
    950: '#000000',
  },
}
SCSS
$custom: #502dab;
$custom-light: #8b69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#502dab",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 256.667,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42325,
    "c": 0.18701,
    "h": 288.4
  },
  "luminance": 0.06523
}

Semantic roles & 50–950 ramp

primary
#502DAB
secondary
#ACC371
accent
#E246B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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