#502F79#502F79

#502F79 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.122 H 301.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#502F79
RGBrgb(80, 47, 121)
HSLhsl(267, 44%, 33%)
HSVhsv(267, 61%, 47%)
CMYKcmyk(33.9%, 61.2%, 0%, 52.5%)
CIE-LABlab(27.07, 31.40, -36.84)
CIE-LCHlch(27.07, 48.40, 310.44°)
OKLaboklab(38.47% 0.0638 -0.1043)
OKLCHoklch(38.47% 0.122 301.4)
XYZxyz(7.7752, 5.1190, 18.6639)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F79 #58792F
analogous
#2F3379 #502F79 #752F79
triadic
#502F79 #79502F #2F7950
tetradic
#502F79 #792F33 #58792F #2F7975
square
#502F79 #792F33 #58792F #2F7975
split-complementary
#502F79 #79752F #33792F
monochromatic
#160D21 #331E4D #502F79 #6D40A5 #8C61C2

Accessibility & contrast

On white

10.38
#502F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#502F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F79
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F79#FFFFFF#000000##FFFFFF
##502F791.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A407B
Deuteranopia (green-blind)
#1A4077
Tritanopia (blue-blind)
#483E4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502f79;
/* rgb */ color: rgb(80, 47, 121);
/* oklch */ color: oklch(38.5% 0.122 301.4);
Tailwind
colors: {
  custom: {
    50: '#8469a0',
    500: '#502f79',
    950: '#000000',
  },
}
SCSS
$custom: #502f79;
$custom-light: #8469a0;
$custom-dark: #000000;
JSON
{
  "hex": "#502f79",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 266.757,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38466,
    "c": 0.12227,
    "h": 301.4
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#502F79
secondary
#86A85B
accent
#D4549B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #502F79

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

Preview Lab → · Contrast checker → · Palette generator →

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