#502F97#502F97

#502F97 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.160 H 292.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#502F97
RGBrgb(80, 47, 151)
HSLhsl(259, 53%, 39%)
HSVhsv(259, 69%, 59%)
CMYKcmyk(47%, 68.9%, 0%, 40.8%)
CIE-LABlab(29.34, 39.88, -51.82)
CIE-LCHlch(29.34, 65.39, 307.58°)
OKLaboklab(40.83% 0.0611 -0.1484)
OKLCHoklch(40.83% 0.16 292.4)
XYZxyz(9.9091, 5.9725, 29.9029)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F97 #76972F
analogous
#2F4297 #502F97 #842F97
triadic
#502F97 #97502F #2F9750
tetradic
#502F97 #972F42 #76972F #2F9784
square
#502F97 #972F42 #76972F #2F9784
split-complementary
#502F97 #97842F #42972F
monochromatic
#1F123A #372068 #502F97 #6A40C3 #8E6ED2

Accessibility & contrast

On white

9.57
#502F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#502F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F97
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F97#FFFFFF#000000##FFFFFF
##502F971.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#3B495F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502f97;
/* rgb */ color: rgb(80, 47, 151);
/* oklch */ color: oklch(40.8% 0.160 292.4);
Tailwind
colors: {
  custom: {
    50: '#886ab6',
    500: '#502f97',
    950: '#000000',
  },
}
SCSS
$custom: #502f97;
$custom-light: #886ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#502f97",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 259.038,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40829,
    "c": 0.16046,
    "h": 292.4
  },
  "luminance": 0.05973
}

Semantic roles & 50–950 ramp

primary
#502F97
secondary
#A0B968
accent
#DC4CAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502F97

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

Preview Lab → · Contrast checker → · Palette generator →

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