#502CAB#502CAB

#502CAB is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.188 H 288.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#502CAB
RGBrgb(80, 44, 171)
HSLhsl(257, 59%, 42%)
HSVhsv(257, 74%, 67%)
CMYKcmyk(53.2%, 74.3%, 0%, 32.9%)
CIE-LABlab(30.51, 47.23, -62.03)
CIE-LCHlch(30.51, 77.96, 307.28°)
OKLaboklab(42.2% 0.0599 -0.1783)
OKLCHoklch(42.2% 0.188 288.6)
XYZxyz(11.5575, 6.4466, 39.1555)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CAB #87AB2C
analogous
#2C47AB #502CAB #902CAB
triadic
#502CAB #AB502C #2CAB50
tetradic
#502CAB #AB2C47 #87AB2C #2CAB90
square
#502CAB #AB2C47 #87AB2C #2CAB90
split-complementary
#502CAB #AB902C #47AB2C
monochromatic
#22134A #391F7A #502CAB #6C45CF #9376DC

Accessibility & contrast

On white

9.17
#502CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#502CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CAB
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CAB#FFFFFF#000000##FFFFFF
##502CAB1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502cab;
/* rgb */ color: rgb(80, 44, 171);
/* oklch */ color: oklch(42.2% 0.188 288.6);
Tailwind
colors: {
  custom: {
    50: '#8b69c5',
    500: '#502cab',
    950: '#000000',
  },
}
SCSS
$custom: #502cab;
$custom-light: #8b69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#502cab",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 257.008,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42198,
    "c": 0.1881,
    "h": 288.6
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#502CAB
secondary
#ACC36F
accent
#E246B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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