#502C8D#502C8D

#502C8D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.152 H 295.7°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#502C8D
RGBrgb(80, 44, 141)
HSLhsl(262, 52%, 36%)
HSVhsv(262, 69%, 55%)
CMYKcmyk(43.3%, 68.8%, 0%, 44.7%)
CIE-LABlab(27.93, 38.69, -47.97)
CIE-LCHlch(27.93, 61.63, 308.89°)
OKLaboklab(39.56% 0.0658 -0.137)
OKLCHoklch(39.56% 0.152 295.7)
XYZxyz(9.0154, 5.4297, 25.7672)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C8D #698D2C
analogous
#2C398D #502C8D #812C8D
triadic
#502C8D #8D502C #2C8D50
tetradic
#502C8D #8D2C39 #698D2C #2C8D81
square
#502C8D #8D2C39 #698D2C #2C8D81
split-complementary
#502C8D #8D812C #398D2C
monochromatic
#1B0F30 #361D5E #502C8D #6A3BBC #8C65CF

Accessibility & contrast

On white

10.07
#502C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#502C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C8D
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C8D#FFFFFF#000000##FFFFFF
##502C8D1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#404358
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502c8d;
/* rgb */ color: rgb(80, 44, 141);
/* oklch */ color: oklch(39.6% 0.152 295.7);
Tailwind
colors: {
  custom: {
    50: '#8668af',
    500: '#502c8d',
    950: '#000000',
  },
}
SCSS
$custom: #502c8d;
$custom-light: #8668af;
$custom-dark: #000000;
JSON
{
  "hex": "#502c8d",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 262.268,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39558,
    "c": 0.15204,
    "h": 295.7
  },
  "luminance": 0.0543
}

Semantic roles & 50–950 ramp

primary
#502C8D
secondary
#95B560
accent
#DC4CA6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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