#502F8A#502F8A

#502F8A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.144 H 295.8°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#502F8A
RGBrgb(80, 47, 138)
HSLhsl(262, 49%, 36%)
HSVhsv(262, 66%, 54%)
CMYKcmyk(42%, 65.9%, 0%, 45.9%)
CIE-LABlab(28.31, 36.15, -45.49)
CIE-LCHlch(28.31, 58.11, 308.48°)
OKLaboklab(39.76% 0.0628 -0.1298)
OKLCHoklch(39.76% 0.144 295.8)
XYZxyz(8.9110, 5.5733, 24.6461)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F8A #698A2F
analogous
#2F3C8A #502F8A #7E2F8A
triadic
#502F8A #8A502F #2F8A50
tetradic
#502F8A #8A2F3C #698A2F #2F8A7E
square
#502F8A #8A2F3C #698A2F #2F8A7E
split-complementary
#502F8A #8A7E2F #3C8A2F
monochromatic
#1B102F #361F5C #502F8A #6A3FB8 #8C68CC

Accessibility & contrast

On white

9.93
#502F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#502F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F8A
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F8A#FFFFFF#000000##FFFFFF
##502F8A1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#414458
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502f8a;
/* rgb */ color: rgb(80, 47, 138);
/* oklch */ color: oklch(39.8% 0.144 295.8);
Tailwind
colors: {
  custom: {
    50: '#8669ad',
    500: '#502f8a',
    950: '#000000',
  },
}
SCSS
$custom: #502f8a;
$custom-light: #8669ad;
$custom-dark: #000000;
JSON
{
  "hex": "#502f8a",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 261.758,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3976,
    "c": 0.14415,
    "h": 295.8
  },
  "luminance": 0.05573
}

Semantic roles & 50–950 ramp

primary
#502F8A
secondary
#95B362
accent
#D94FA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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