#502D92#502D92

#502D92 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.157 H 294.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#502D92
RGBrgb(80, 45, 146)
HSLhsl(261, 53%, 37%)
HSVhsv(261, 69%, 57%)
CMYKcmyk(45.2%, 69.2%, 0%, 42.7%)
CIE-LABlab(28.53, 39.56, -50.08)
CIE-LCHlch(28.53, 63.82, 308.31°)
OKLaboklab(40.12% 0.064 -0.1432)
OKLCHoklch(40.12% 0.157 294.1)
XYZxyz(9.4336, 5.6573, 27.7835)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D92 #6F922D
analogous
#2D3C92 #502D92 #832D92
triadic
#502D92 #92502D #2D9250
tetradic
#502D92 #922D3C #6F922D #2D9283
square
#502D92 #922D3C #6F922D #2D9283
split-complementary
#502D92 #92832D #3C922D
monochromatic
#1D1034 #361F63 #502D92 #6A3BC1 #8D69D1

Accessibility & contrast

On white

9.85
#502D92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#502D92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D92
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D92#FFFFFF#000000##FFFFFF
##502D921.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#3D465C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502d92;
/* rgb */ color: rgb(80, 45, 146);
/* oklch */ color: oklch(40.1% 0.157 294.1);
Tailwind
colors: {
  custom: {
    50: '#8768b3',
    500: '#502d92',
    950: '#000000',
  },
}
SCSS
$custom: #502d92;
$custom-light: #8768b3;
$custom-dark: #000000;
JSON
{
  "hex": "#502d92",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 146
  },
  "hsl": {
    "h": 260.792,
    "s": 52.88,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40119,
    "c": 0.15688,
    "h": 294.1
  },
  "luminance": 0.05658
}

Semantic roles & 50–950 ramp

primary
#502D92
secondary
#9AB763
accent
#DC4CAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D92

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

Preview Lab → · Contrast checker → · Palette generator →

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