#502F8B#502F8B

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

Color values

HEX#502F8B
RGBrgb(80, 47, 139)
HSLhsl(262, 49%, 36%)
HSVhsv(262, 66%, 55%)
CMYKcmyk(42.4%, 66.2%, 0%, 45.5%)
CIE-LABlab(28.39, 36.44, -45.99)
CIE-LCHlch(28.39, 58.67, 308.39°)
OKLaboklab(39.84% 0.0627 -0.1312)
OKLCHoklch(39.84% 0.145 295.5)
XYZxyz(8.9838, 5.6024, 25.0291)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F8B #6A8B2F
analogous
#2F3C8B #502F8B #7E2F8B
triadic
#502F8B #8B502F #2F8B50
tetradic
#502F8B #8B2F3C #6A8B2F #2F8B7E
square
#502F8B #8B2F3C #6A8B2F #2F8B7E
split-complementary
#502F8B #8B7E2F #3C8B2F
monochromatic
#1B1030 #36205D #502F8B #6A3EB9 #8C68CC

Accessibility & contrast

On white

9.90
#502F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#502F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F8B
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F8B#FFFFFF#000000##FFFFFF
##502F8B1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#414458
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502f8b;
/* rgb */ color: rgb(80, 47, 139);
/* oklch */ color: oklch(39.8% 0.145 295.5);
Tailwind
colors: {
  custom: {
    50: '#8669ae',
    500: '#502f8b',
    950: '#000000',
  },
}
SCSS
$custom: #502f8b;
$custom-light: #8669ae;
$custom-dark: #000000;
JSON
{
  "hex": "#502f8b",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 261.522,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3984,
    "c": 0.14542,
    "h": 295.5
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#502F8B
secondary
#96B363
accent
#D94FA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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