#502F7D#502F7D

#502F7D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.127 H 300.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#502F7D
RGBrgb(80, 47, 125)
HSLhsl(265, 45%, 34%)
HSVhsv(265, 62%, 49%)
CMYKcmyk(36%, 62.4%, 0%, 51%)
CIE-LABlab(27.35, 32.50, -38.91)
CIE-LCHlch(27.35, 50.70, 309.87°)
OKLaboklab(38.76% 0.0637 -0.1104)
OKLCHoklch(38.76% 0.127 300)
XYZxyz(8.0256, 5.2191, 19.9826)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F7D #5C7D2F
analogous
#2F357D #502F7D #772F7D
triadic
#502F7D #7D502F #2F7D50
tetradic
#502F7D #7D2F35 #5C7D2F #2F7D77
square
#502F7D #7D2F35 #5C7D2F #2F7D77
split-complementary
#502F7D #7D772F #357D2F
monochromatic
#170E24 #341E51 #502F7D #6C40A9 #8C62C4

Accessibility & contrast

On white

10.27
#502F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#502F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F7D
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F7D#FFFFFF#000000##FFFFFF
##502F7D1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#14407B
Tritanopia (blue-blind)
#463F51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502f7d;
/* rgb */ color: rgb(80, 47, 125);
/* oklch */ color: oklch(38.8% 0.127 300.0);
Tailwind
colors: {
  custom: {
    50: '#8469a3',
    500: '#502f7d',
    950: '#000000',
  },
}
SCSS
$custom: #502f7d;
$custom-light: #8469a3;
$custom-dark: #000000;
JSON
{
  "hex": "#502f7d",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 265.385,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38759,
    "c": 0.12747,
    "h": 300
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#502F7D
secondary
#8AAB5D
accent
#D5539E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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