#502C8A#502C8A

#502C8A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.148 H 296.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#502C8A
RGBrgb(80, 44, 138)
HSLhsl(263, 52%, 36%)
HSVhsv(263, 68%, 54%)
CMYKcmyk(42%, 68.1%, 0%, 45.9%)
CIE-LABlab(27.69, 37.85, -46.50)
CIE-LCHlch(27.69, 59.96, 309.14°)
OKLaboklab(39.31% 0.0663 -0.1327)
OKLCHoklch(39.31% 0.148 296.5)
XYZxyz(8.7952, 5.3416, 24.6075)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C8A #668A2C
analogous
#2C378A #502C8A #7F2C8A
triadic
#502C8A #8A502C #2C8A50
tetradic
#502C8A #8A2C37 #668A2C #2C8A7F
square
#502C8A #8A2C37 #668A2C #2C8A7F
split-complementary
#502C8A #8A7F2C #378A2C
monochromatic
#1A0E2D #351D5C #502C8A #6B3BB8 #8C63CD

Accessibility & contrast

On white

10.15
#502C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#502C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C8A
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C8A#FFFFFF#000000##FFFFFF
##502C8A1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#414257
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502c8a;
/* rgb */ color: rgb(80, 44, 138);
/* oklch */ color: oklch(39.3% 0.148 296.5);
Tailwind
colors: {
  custom: {
    50: '#8668ad',
    500: '#502c8a',
    950: '#000000',
  },
}
SCSS
$custom: #502c8a;
$custom-light: #8668ad;
$custom-dark: #000000;
JSON
{
  "hex": "#502c8a",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 262.979,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39311,
    "c": 0.14834,
    "h": 296.5
  },
  "luminance": 0.05342
}

Semantic roles & 50–950 ramp

primary
#502C8A
secondary
#93B45E
accent
#DB4DA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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