#502B73#502B73

#502B73 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.121 H 304.9°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#502B73
RGBrgb(80, 43, 115)
HSLhsl(271, 46%, 31%)
HSVhsv(271, 63%, 45%)
CMYKcmyk(30.4%, 62.6%, 0%, 54.9%)
CIE-LABlab(25.78, 32.13, -35.10)
CIE-LCHlch(25.78, 47.59, 312.47°)
OKLaboklab(37.39% 0.0693 -0.0992)
OKLCHoklch(37.39% 0.121 304.9)
XYZxyz(7.2660, 4.6711, 16.7352)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B73 #4E732B
analogous
#2C2B73 #502B73 #732B72
triadic
#502B73 #73502B #2B7350
tetradic
#502B73 #732C2B #4E732B #2B7273
square
#502B73 #732C2B #4E732B #2B7273
split-complementary
#502B73 #72732B #2B732C
monochromatic
#120A1A #311A46 #502B73 #6F3CA0 #8E58C1

Accessibility & contrast

On white

10.86
#502B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#502B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B73
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B73#FFFFFF#000000##FFFFFF
##502B731.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083C75
Deuteranopia (green-blind)
#1B3D71
Tritanopia (blue-blind)
#4A394A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #502b73;
/* rgb */ color: rgb(80, 43, 115);
/* oklch */ color: oklch(37.4% 0.121 304.9);
Tailwind
colors: {
  custom: {
    50: '#84669c',
    500: '#502b73',
    950: '#000000',
  },
}
SCSS
$custom: #502b73;
$custom-light: #84669c;
$custom-dark: #000000;
JSON
{
  "hex": "#502b73",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 115
  },
  "hsl": {
    "h": 270.833,
    "s": 45.57,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37388,
    "c": 0.12103,
    "h": 304.9
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#502B73
secondary
#7CA555
accent
#D55392
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #502B73

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

Preview Lab → · Contrast checker → · Palette generator →

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