#502D95#502D95

#502D95 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.161 H 293.3°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#502D95
RGBrgb(80, 45, 149)
HSLhsl(260, 54%, 38%)
HSVhsv(260, 70%, 58%)
CMYKcmyk(46.3%, 69.8%, 0%, 41.6%)
CIE-LABlab(28.78, 40.41, -51.52)
CIE-LCHlch(28.78, 65.48, 308.11°)
OKLaboklab(40.37% 0.0635 -0.1475)
OKLCHoklch(40.37% 0.161 293.3)
XYZxyz(9.6700, 5.7519, 29.0287)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D95 #72952D
analogous
#2D3E95 #502D95 #842D95
triadic
#502D95 #95502D #2D9550
tetradic
#502D95 #952D3E #72952D #2D9584
square
#502D95 #952D3E #72952D #2D9584
split-complementary
#502D95 #95842D #3E952D
monochromatic
#1E1137 #371F66 #502D95 #693BC4 #8D6AD2

Accessibility & contrast

On white

9.77
#502D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#502D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D95
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D95#FFFFFF#000000##FFFFFF
##502D951.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#3C475D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502d95;
/* rgb */ color: rgb(80, 45, 149);
/* oklch */ color: oklch(40.4% 0.161 293.3);
Tailwind
colors: {
  custom: {
    50: '#8769b5',
    500: '#502d95',
    950: '#000000',
  },
}
SCSS
$custom: #502d95;
$custom-light: #8769b5;
$custom-dark: #000000;
JSON
{
  "hex": "#502d95",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 260.192,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40372,
    "c": 0.16056,
    "h": 293.3
  },
  "luminance": 0.05752
}

Semantic roles & 50–950 ramp

primary
#502D95
secondary
#9DB965
accent
#DD4BAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D95

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

Preview Lab → · Contrast checker → · Palette generator →

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