#502C96#502C96

#502C96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.163 H 293.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#502C96
RGBrgb(80, 44, 150)
HSLhsl(260, 55%, 38%)
HSVhsv(260, 71%, 59%)
CMYKcmyk(46.7%, 70.7%, 0%, 41.2%)
CIE-LABlab(28.66, 41.24, -52.32)
CIE-LCHlch(28.66, 66.62, 308.25°)
OKLaboklab(40.32% 0.0644 -0.1498)
OKLCHoklch(40.32% 0.163 293.2)
XYZxyz(9.7125, 5.7085, 29.4384)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C96 #72962C
analogous
#2C3D96 #502C96 #852C96
triadic
#502C96 #96502C #2C9650
tetradic
#502C96 #962C3D #72962C #2C9685
square
#502C96 #962C3D #72962C #2C9685
split-complementary
#502C96 #96852C #3D962C
monochromatic
#1E1037 #371E67 #502C96 #693AC5 #8D69D3

Accessibility & contrast

On white

9.80
#502C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502C96
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C96#FFFFFF#000000##FFFFFF
##502C961.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#3B475D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502c96;
/* rgb */ color: rgb(80, 44, 150);
/* oklch */ color: oklch(40.3% 0.163 293.2);
Tailwind
colors: {
  custom: {
    50: '#8868b6',
    500: '#502c96',
    950: '#000000',
  },
}
SCSS
$custom: #502c96;
$custom-light: #8868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#502c96",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 260.377,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40318,
    "c": 0.16305,
    "h": 293.2
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#502C96
secondary
#9DBA64
accent
#DE4AAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502C96

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

Preview Lab → · Contrast checker → · Palette generator →

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