#502F8D#502F8D

#502F8D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.148 H 295.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#502F8D
RGBrgb(80, 47, 141)
HSLhsl(261, 50%, 37%)
HSVhsv(261, 67%, 55%)
CMYKcmyk(43.3%, 66.7%, 0%, 44.7%)
CIE-LABlab(28.54, 37.01, -46.97)
CIE-LCHlch(28.54, 59.80, 308.23°)
OKLaboklab(40% 0.0625 -0.1341)
OKLCHoklch(40% 0.148 295)
XYZxyz(9.1312, 5.6614, 25.8058)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F8D #6C8D2F
analogous
#2F3D8D #502F8D #7F2F8D
triadic
#502F8D #8D502F #2F8D50
tetradic
#502F8D #8D2F3D #6C8D2F #2F8D7F
square
#502F8D #8D2F3D #6C8D2F #2F8D7F
split-complementary
#502F8D #8D7F2F #3D8D2F
monochromatic
#1C1031 #36205F #502F8D #6A3EBB #8C69CD

Accessibility & contrast

On white

9.85
#502F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#502F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F8D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F8D#FFFFFF#000000##FFFFFF
##502F8D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#404559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502f8d;
/* rgb */ color: rgb(80, 47, 141);
/* oklch */ color: oklch(40.0% 0.148 295.0);
Tailwind
colors: {
  custom: {
    50: '#866aaf',
    500: '#502f8d',
    950: '#000000',
  },
}
SCSS
$custom: #502f8d;
$custom-light: #866aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#502f8d",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 261.064,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40001,
    "c": 0.14795,
    "h": 295
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#502F8D
secondary
#98B464
accent
#DA4EA9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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