#502C94#502C94

#502C94 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.161 H 293.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#502C94
RGBrgb(80, 44, 148)
HSLhsl(261, 54%, 38%)
HSVhsv(261, 70%, 58%)
CMYKcmyk(45.9%, 70.3%, 0%, 42%)
CIE-LABlab(28.50, 40.67, -51.36)
CIE-LCHlch(28.50, 65.51, 308.37°)
OKLaboklab(40.15% 0.0647 -0.147)
OKLCHoklch(40.15% 0.161 293.8)
XYZxyz(9.5528, 5.6447, 28.5974)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C94 #70942C
analogous
#2C3C94 #502C94 #842C94
triadic
#502C94 #94502C #2C9450
tetradic
#502C94 #942C3C #70942C #2C9484
square
#502C94 #942C3C #70942C #2C9484
split-complementary
#502C94 #94842C #3C942C
monochromatic
#1D1036 #361E65 #502C94 #693AC3 #8D68D2

Accessibility & contrast

On white

9.86
#502C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502C94
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C94#FFFFFF#000000##FFFFFF
##502C941.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#3C465C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502c94;
/* rgb */ color: rgb(80, 44, 148);
/* oklch */ color: oklch(40.1% 0.161 293.8);
Tailwind
colors: {
  custom: {
    50: '#8768b4',
    500: '#502c94',
    950: '#000000',
  },
}
SCSS
$custom: #502c94;
$custom-light: #8768b4;
$custom-dark: #000000;
JSON
{
  "hex": "#502c94",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 260.769,
    "s": 54.167,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40146,
    "c": 0.16062,
    "h": 293.8
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502C94

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

Preview Lab → · Contrast checker → · Palette generator →

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