#502F72#502F72

#502F72 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.0% C 0.113 H 304.3°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#502F72
RGBrgb(80, 47, 114)
HSLhsl(270, 42%, 32%)
HSVhsv(270, 59%, 45%)
CMYKcmyk(29.8%, 58.8%, 0%, 55.3%)
CIE-LABlab(26.60, 29.50, -33.14)
CIE-LCHlch(26.60, 44.37, 311.67°)
OKLaboklab(37.97% 0.0637 -0.0935)
OKLCHoklch(37.97% 0.113 304.3)
XYZxyz(7.3614, 4.9534, 16.4846)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F72 #51722F
analogous
#2F3072 #502F72 #722F72
triadic
#502F72 #72502F #2F7250
tetradic
#502F72 #722F30 #51722F #2F7272
square
#502F72 #722F30 #51722F #2F7272
split-complementary
#502F72 #72722F #30722F
monochromatic
#130B1B #321D47 #502F72 #6E419D #8D5FBD

Accessibility & contrast

On white

10.55
#502F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#502F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F72
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F72#FFFFFF#000000##FFFFFF
##502F721.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E74
Deuteranopia (green-blind)
#213F70
Tritanopia (blue-blind)
#4A3C4B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502f72;
/* rgb */ color: rgb(80, 47, 114);
/* oklch */ color: oklch(38.0% 0.113 304.3);
Tailwind
colors: {
  custom: {
    50: '#83699b',
    500: '#502f72',
    950: '#000000',
  },
}
SCSS
$custom: #502f72;
$custom-light: #83699b;
$custom-dark: #000000;
JSON
{
  "hex": "#502f72",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 269.552,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37971,
    "c": 0.11313,
    "h": 304.3
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#502F72
secondary
#7FA35A
accent
#D15695
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #502F72

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

Preview Lab → · Contrast checker → · Palette generator →

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