#502C92#502C92

#502C92 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.158 H 294.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#502C92
RGBrgb(80, 44, 146)
HSLhsl(261, 54%, 37%)
HSVhsv(261, 70%, 57%)
CMYKcmyk(45.2%, 69.9%, 0%, 42.7%)
CIE-LABlab(28.33, 40.10, -50.40)
CIE-LCHlch(28.33, 64.41, 308.51°)
OKLaboklab(39.98% 0.0651 -0.1442)
OKLCHoklch(39.98% 0.158 294.3)
XYZxyz(9.3959, 5.5819, 27.7709)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C92 #6E922C
analogous
#2C3B92 #502C92 #832C92
triadic
#502C92 #92502C #2C9250
tetradic
#502C92 #922C3B #6E922C #2C9283
square
#502C92 #922C3B #6E922C #2C9283
split-complementary
#502C92 #92832C #3B922C
monochromatic
#1C1034 #361E63 #502C92 #6A3AC1 #8D67D1

Accessibility & contrast

On white

9.92
#502C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#502C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C92
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C92#FFFFFF#000000##FFFFFF
##502C921.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502c92;
/* rgb */ color: rgb(80, 44, 146);
/* oklch */ color: oklch(40.0% 0.158 294.3);
Tailwind
colors: {
  custom: {
    50: '#8768b3',
    500: '#502c92',
    950: '#000000',
  },
}
SCSS
$custom: #502c92;
$custom-light: #8768b3;
$custom-dark: #000000;
JSON
{
  "hex": "#502c92",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 146
  },
  "hsl": {
    "h": 261.176,
    "s": 53.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39976,
    "c": 0.15818,
    "h": 294.3
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#502C92
secondary
#9AB862
accent
#DD4BA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502C92

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

Preview Lab → · Contrast checker → · Palette generator →

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