#502C95#502C95

#502C95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.162 H 293.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#502C95
RGBrgb(80, 44, 149)
HSLhsl(261, 54%, 38%)
HSVhsv(261, 70%, 58%)
CMYKcmyk(46.3%, 70.5%, 0%, 41.6%)
CIE-LABlab(28.58, 40.95, -51.84)
CIE-LCHlch(28.58, 66.06, 308.31°)
OKLaboklab(40.23% 0.0645 -0.1484)
OKLCHoklch(40.23% 0.162 293.5)
XYZxyz(9.6323, 5.6765, 29.0161)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C95 #71952C
analogous
#2C3D95 #502C95 #842C95
triadic
#502C95 #95502C #2C9550
tetradic
#502C95 #952C3D #71952C #2C9584
square
#502C95 #952C3D #71952C #2C9584
split-complementary
#502C95 #95842C #3D952C
monochromatic
#1D1037 #371E66 #502C95 #693AC4 #8D69D3

Accessibility & contrast

On white

9.83
#502C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#502C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C95
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C95#FFFFFF#000000##FFFFFF
##502C951.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#3C465D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502c95;
/* rgb */ color: rgb(80, 44, 149);
/* oklch */ color: oklch(40.2% 0.162 293.5);
Tailwind
colors: {
  custom: {
    50: '#8768b5',
    500: '#502c95',
    950: '#000000',
  },
}
SCSS
$custom: #502c95;
$custom-light: #8768b5;
$custom-dark: #000000;
JSON
{
  "hex": "#502c95",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 260.571,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40232,
    "c": 0.16184,
    "h": 293.5
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#502C95
secondary
#9CB964
accent
#DE4AAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502C95

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

Preview Lab → · Contrast checker → · Palette generator →

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