#502F87#502F87

#502F87 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.140 H 296.7°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#502F87
RGBrgb(80, 47, 135)
HSLhsl(263, 48%, 36%)
HSVhsv(263, 65%, 53%)
CMYKcmyk(40.7%, 65.2%, 0%, 47.1%)
CIE-LABlab(28.08, 35.30, -44.00)
CIE-LCHlch(28.08, 56.41, 308.74°)
OKLaboklab(39.52% 0.0631 -0.1254)
OKLCHoklch(39.52% 0.14 296.7)
XYZxyz(8.6968, 5.4876, 23.5180)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F87 #66872F
analogous
#2F3A87 #502F87 #7C2F87
triadic
#502F87 #87502F #2F8750
tetradic
#502F87 #872F3A #66872F #2F877C
square
#502F87 #872F3A #66872F #2F877C
split-complementary
#502F87 #877C2F #3A872F
monochromatic
#1A0F2C #351F5A #502F87 #6B3FB4 #8C66CA

Accessibility & contrast

On white

10.01
#502F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#502F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F87
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F87#FFFFFF#000000##FFFFFF
##502F871.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#424356
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502f87;
/* rgb */ color: rgb(80, 47, 135);
/* oklch */ color: oklch(39.5% 0.140 296.7);
Tailwind
colors: {
  custom: {
    50: '#8669ab',
    500: '#502f87',
    950: '#000000',
  },
}
SCSS
$custom: #502f87;
$custom-light: #8669ab;
$custom-dark: #000000;
JSON
{
  "hex": "#502f87",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 262.5,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39523,
    "c": 0.14034,
    "h": 296.7
  },
  "luminance": 0.05488
}

Semantic roles & 50–950 ramp

primary
#502F87
secondary
#93B161
accent
#D850A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502F87

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

Preview Lab → · Contrast checker → · Palette generator →

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