#502F8F#502F8F

#502F8F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.150 H 294.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#502F8F
RGBrgb(80, 47, 143)
HSLhsl(261, 51%, 37%)
HSVhsv(261, 67%, 56%)
CMYKcmyk(44.1%, 67.1%, 0%, 43.9%)
CIE-LABlab(28.70, 37.58, -47.96)
CIE-LCHlch(28.70, 60.93, 308.09°)
OKLaboklab(40.16% 0.0622 -0.137)
OKLCHoklch(40.16% 0.15 294.4)
XYZxyz(9.2814, 5.7214, 26.5966)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F8F #6E8F2F
analogous
#2F3E8F #502F8F #802F8F
triadic
#502F8F #8F502F #2F8F50
tetradic
#502F8F #8F2F3E #6E8F2F #2F8F80
square
#502F8F #8F2F3E #6E8F2F #2F8F80
split-complementary
#502F8F #8F802F #3E8F2F
monochromatic
#1C1133 #362061 #502F8F #6A3EBD #8D6ACE

Accessibility & contrast

On white

9.79
#502F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#502F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F8F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F8F#FFFFFF#000000##FFFFFF
##502F8F1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#3F465B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502f8f;
/* rgb */ color: rgb(80, 47, 143);
/* oklch */ color: oklch(40.2% 0.150 294.4);
Tailwind
colors: {
  custom: {
    50: '#866ab1',
    500: '#502f8f',
    950: '#000000',
  },
}
SCSS
$custom: #502f8f;
$custom-light: #866ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#502f8f",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 260.625,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40163,
    "c": 0.15047,
    "h": 294.4
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#502F8F
secondary
#9AB565
accent
#DA4EAA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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