#502D74#502D74

#502D74 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.8% C 0.119 H 304.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#502D74
RGBrgb(80, 45, 116)
HSLhsl(270, 44%, 32%)
HSVhsv(270, 61%, 45%)
CMYKcmyk(31%, 61.2%, 0%, 54.5%)
CIE-LABlab(26.28, 31.23, -34.93)
CIE-LCHlch(26.28, 46.85, 311.80°)
OKLaboklab(37.78% 0.0665 -0.0987)
OKLCHoklch(37.78% 0.119 304)
XYZxyz(7.3983, 4.8432, 17.0647)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D74 #51742D
analogous
#2D2E74 #502D74 #742D74
triadic
#502D74 #74502D #2D7450
tetradic
#502D74 #742D2E #51742D #2D7474
square
#502D74 #742D2E #51742D #2D7474
split-complementary
#502D74 #74742D #2E742D
monochromatic
#130B1C #321C48 #502D74 #6E3EA0 #8D5CC0

Accessibility & contrast

On white

10.67
#502D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#502D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D74
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D74#FFFFFF#000000##FFFFFF
##502D741.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3D76
Deuteranopia (green-blind)
#1D3E72
Tritanopia (blue-blind)
#493B4C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #502d74;
/* rgb */ color: rgb(80, 45, 116);
/* oklch */ color: oklch(37.8% 0.119 304.0);
Tailwind
colors: {
  custom: {
    50: '#84689c',
    500: '#502d74',
    950: '#000000',
  },
}
SCSS
$custom: #502d74;
$custom-light: #84689c;
$custom-dark: #000000;
JSON
{
  "hex": "#502d74",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 269.577,
    "s": 44.099,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3778,
    "c": 0.11904,
    "h": 304
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#502D74
secondary
#7FA557
accent
#D45495
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #502D74

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

Preview Lab → · Contrast checker → · Palette generator →

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