#502C8C#502C8C

#502C8C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.151 H 295.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#502C8C
RGBrgb(80, 44, 140)
HSLhsl(263, 52%, 36%)
HSVhsv(263, 69%, 55%)
CMYKcmyk(42.9%, 68.6%, 0%, 45.1%)
CIE-LABlab(27.85, 38.41, -47.49)
CIE-LCHlch(27.85, 61.08, 308.97°)
OKLaboklab(39.48% 0.066 -0.1356)
OKLCHoklch(39.48% 0.151 295.9)
XYZxyz(8.9413, 5.4001, 25.3771)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C8C #688C2C
analogous
#2C388C #502C8C #802C8C
triadic
#502C8C #8C502C #2C8C50
tetradic
#502C8C #8C2C38 #688C2C #2C8C80
square
#502C8C #8C2C38 #688C2C #2C8C80
split-complementary
#502C8C #8C802C #388C2C
monochromatic
#1B0F2F #351D5D #502C8C #6B3BBB #8C64CE

Accessibility & contrast

On white

10.10
#502C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#502C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C8C
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C8C#FFFFFF#000000##FFFFFF
##502C8C1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#404358
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502c8c;
/* rgb */ color: rgb(80, 44, 140);
/* oklch */ color: oklch(39.5% 0.151 295.9);
Tailwind
colors: {
  custom: {
    50: '#8668ae',
    500: '#502c8c',
    950: '#000000',
  },
}
SCSS
$custom: #502c8c;
$custom-light: #8668ae;
$custom-dark: #000000;
JSON
{
  "hex": "#502c8c",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 262.5,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39475,
    "c": 0.15081,
    "h": 295.9
  },
  "luminance": 0.054
}

Semantic roles & 50–950 ramp

primary
#502C8C
secondary
#95B55F
accent
#DC4CA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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