#502F89#502F89

#502F89 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.143 H 296.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#502F89
RGBrgb(80, 47, 137)
HSLhsl(262, 49%, 36%)
HSVhsv(262, 66%, 54%)
CMYKcmyk(41.6%, 65.7%, 0%, 46.3%)
CIE-LABlab(28.23, 35.87, -45.00)
CIE-LCHlch(28.23, 57.54, 308.56°)
OKLaboklab(39.68% 0.0629 -0.1283)
OKLCHoklch(39.68% 0.143 296.1)
XYZxyz(8.8390, 5.5445, 24.2666)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F89 #68892F
analogous
#2F3B89 #502F89 #7D2F89
triadic
#502F89 #89502F #2F8950
tetradic
#502F89 #892F3B #68892F #2F897D
square
#502F89 #892F3B #68892F #2F897D
split-complementary
#502F89 #897D2F #3B892F
monochromatic
#1B102E #351F5B #502F89 #6B3FB7 #8C67CB

Accessibility & contrast

On white

9.96
#502F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502F89
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F89#FFFFFF#000000##FFFFFF
##502F891.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#424457
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502f89;
/* rgb */ color: rgb(80, 47, 137);
/* oklch */ color: oklch(39.7% 0.143 296.1);
Tailwind
colors: {
  custom: {
    50: '#8669ac',
    500: '#502f89',
    950: '#000000',
  },
}
SCSS
$custom: #502f89;
$custom-light: #8669ac;
$custom-dark: #000000;
JSON
{
  "hex": "#502f89",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 262,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3968,
    "c": 0.14288,
    "h": 296.1
  },
  "luminance": 0.05545
}

Semantic roles & 50–950 ramp

primary
#502F89
secondary
#95B262
accent
#D84FA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502F89

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

Preview Lab → · Contrast checker → · Palette generator →

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