#502CAA#502CAA

#502CAA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.187 H 288.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#502CAA
RGBrgb(80, 44, 170)
HSLhsl(257, 59%, 42%)
HSVhsv(257, 74%, 67%)
CMYKcmyk(52.9%, 74.1%, 0%, 33.3%)
CIE-LABlab(30.42, 46.94, -61.58)
CIE-LCHlch(30.42, 77.43, 307.32°)
OKLaboklab(42.11% 0.0601 -0.177)
OKLCHoklch(42.11% 0.187 288.8)
XYZxyz(11.4625, 6.4086, 38.6554)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CAA #86AA2C
analogous
#2C47AA #502CAA #8F2CAA
triadic
#502CAA #AA502C #2CAA50
tetradic
#502CAA #AA2C47 #86AA2C #2CAA8F
square
#502CAA #AA2C47 #86AA2C #2CAA8F
split-complementary
#502CAA #AA8F2C #47AA2C
monochromatic
#221349 #391F79 #502CAA #6C44CF #9275DB

Accessibility & contrast

On white

9.20
#502CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#502CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CAA
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CAA#FFFFFF#000000##FFFFFF
##502CAA1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#2E4E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502caa;
/* rgb */ color: rgb(80, 44, 170);
/* oklch */ color: oklch(42.1% 0.187 288.8);
Tailwind
colors: {
  custom: {
    50: '#8b69c4',
    500: '#502caa',
    950: '#000000',
  },
}
SCSS
$custom: #502caa;
$custom-light: #8b69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#502caa",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 257.143,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42105,
    "c": 0.18692,
    "h": 288.8
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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