#502F88#502F88

#502F88 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.142 H 296.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#502F88
RGBrgb(80, 47, 136)
HSLhsl(262, 49%, 36%)
HSVhsv(262, 65%, 53%)
CMYKcmyk(41.2%, 65.4%, 0%, 46.7%)
CIE-LABlab(28.16, 35.59, -44.50)
CIE-LCHlch(28.16, 56.98, 308.65°)
OKLaboklab(39.6% 0.063 -0.1268)
OKLCHoklch(39.6% 0.142 296.4)
XYZxyz(8.7676, 5.5159, 23.8905)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F88 #67882F
analogous
#2F3A88 #502F88 #7C2F88
triadic
#502F88 #88502F #2F8850
tetradic
#502F88 #882F3A #67882F #2F887C
square
#502F88 #882F3A #67882F #2F887C
split-complementary
#502F88 #887C2F #3A882F
monochromatic
#1A102D #351F5B #502F88 #6B3FB5 #8C67CA

Accessibility & contrast

On white

9.98
#502F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502F88
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F88#FFFFFF#000000##FFFFFF
##502F881.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#424357
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502f88;
/* rgb */ color: rgb(80, 47, 136);
/* oklch */ color: oklch(39.6% 0.142 296.4);
Tailwind
colors: {
  custom: {
    50: '#8669ab',
    500: '#502f88',
    950: '#000000',
  },
}
SCSS
$custom: #502f88;
$custom-light: #8669ab;
$custom-dark: #000000;
JSON
{
  "hex": "#502f88",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 262.247,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39601,
    "c": 0.14161,
    "h": 296.4
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#502F88
secondary
#94B161
accent
#D850A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502F88

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

Preview Lab → · Contrast checker → · Palette generator →

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