#502D94#502D94

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

Color values

HEX#502D94
RGBrgb(80, 45, 148)
HSLhsl(260, 53%, 38%)
HSVhsv(260, 70%, 58%)
CMYKcmyk(45.9%, 69.6%, 0%, 42%)
CIE-LABlab(28.70, 40.12, -51.04)
CIE-LCHlch(28.70, 64.92, 308.17°)
OKLaboklab(40.29% 0.0637 -0.1461)
OKLCHoklch(40.29% 0.159 293.6)
XYZxyz(9.5905, 5.7201, 28.6100)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D94 #71942D
analogous
#2D3E94 #502D94 #832D94
triadic
#502D94 #94502D #2D9450
tetradic
#502D94 #942D3E #71942D #2D9483
square
#502D94 #942D3E #71942D #2D9483
split-complementary
#502D94 #94832D #3E942D
monochromatic
#1D1036 #371F65 #502D94 #693BC3 #8D6AD2

Accessibility & contrast

On white

9.79
#502D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502D94
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D94#FFFFFF#000000##FFFFFF
##502D941.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#3C465D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502d94;
/* rgb */ color: rgb(80, 45, 148);
/* oklch */ color: oklch(40.3% 0.159 293.6);
Tailwind
colors: {
  custom: {
    50: '#8769b4',
    500: '#502d94',
    950: '#000000',
  },
}
SCSS
$custom: #502d94;
$custom-light: #8769b4;
$custom-dark: #000000;
JSON
{
  "hex": "#502d94",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 260.388,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40287,
    "c": 0.15934,
    "h": 293.6
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#502D94
secondary
#9CB864
accent
#DD4BAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D94

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

Preview Lab → · Contrast checker → · Palette generator →

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