#502C8E#502C8E

#502C8E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.153 H 295.4°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#502C8E
RGBrgb(80, 44, 142)
HSLhsl(262, 53%, 36%)
HSVhsv(262, 69%, 56%)
CMYKcmyk(43.7%, 69%, 0%, 44.3%)
CIE-LABlab(28.01, 38.97, -48.46)
CIE-LCHlch(28.01, 62.19, 308.81°)
OKLaboklab(39.64% 0.0657 -0.1385)
OKLCHoklch(39.64% 0.153 295.4)
XYZxyz(9.0901, 5.4596, 26.1608)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C8E #6A8E2C
analogous
#2C398E #502C8E #812C8E
triadic
#502C8E #8E502C #2C8E50
tetradic
#502C8E #8E2C39 #6A8E2C #2C8E81
square
#502C8E #8E2C39 #6A8E2C #2C8E81
split-complementary
#502C8E #8E812C #398E2C
monochromatic
#1B0F31 #361E5F #502C8E #6A3ABD #8C65CF

Accessibility & contrast

On white

10.04
#502C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502C8E
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C8E#FFFFFF#000000##FFFFFF
##502C8E1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#3F4459
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502c8e;
/* rgb */ color: rgb(80, 44, 142);
/* oklch */ color: oklch(39.6% 0.153 295.4);
Tailwind
colors: {
  custom: {
    50: '#8768b0',
    500: '#502c8e',
    950: '#000000',
  },
}
SCSS
$custom: #502c8e;
$custom-light: #8768b0;
$custom-dark: #000000;
JSON
{
  "hex": "#502c8e",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 262.041,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39641,
    "c": 0.15327,
    "h": 295.4
  },
  "luminance": 0.0546
}

Semantic roles & 50–950 ramp

primary
#502C8E
secondary
#96B660
accent
#DC4CA7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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