#502C74#502C74

#502C74 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.6% C 0.121 H 304.3°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#502C74
RGBrgb(80, 44, 116)
HSLhsl(270, 45%, 31%)
HSVhsv(270, 62%, 45%)
CMYKcmyk(31%, 62.1%, 0%, 54.5%)
CIE-LABlab(26.06, 31.82, -35.28)
CIE-LCHlch(26.06, 47.51, 312.04°)
OKLaboklab(37.62% 0.0679 -0.0997)
OKLCHoklch(37.62% 0.121 304.3)
XYZxyz(7.3606, 4.7678, 17.0521)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C74 #50742C
analogous
#2C2C74 #502C74 #742C74
triadic
#502C74 #74502C #2C7450
tetradic
#502C74 #742C2C #50742C #2C7474
square
#502C74 #742C2C #50742C #2C7474
split-complementary
#502C74 #74742C #2C742C
monochromatic
#130A1B #311B48 #502C74 #6F3DA0 #8D5AC0

Accessibility & contrast

On white

10.75
#502C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#502C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C74
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C74#FFFFFF#000000##FFFFFF
##502C741.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3D76
Deuteranopia (green-blind)
#1C3E72
Tritanopia (blue-blind)
#4A3A4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #502c74;
/* rgb */ color: rgb(80, 44, 116);
/* oklch */ color: oklch(37.6% 0.121 304.3);
Tailwind
colors: {
  custom: {
    50: '#84679c',
    500: '#502c74',
    950: '#000000',
  },
}
SCSS
$custom: #502c74;
$custom-light: #84679c;
$custom-dark: #000000;
JSON
{
  "hex": "#502c74",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 270,
    "s": 45,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.12068,
    "h": 304.3
  },
  "luminance": 0.04768
}

Semantic roles & 50–950 ramp

primary
#502C74
secondary
#7EA656
accent
#D55394
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #502C74

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

Preview Lab → · Contrast checker → · Palette generator →

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