#502F95#502F95

#502F95 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.158 H 292.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#502F95
RGBrgb(80, 47, 149)
HSLhsl(259, 52%, 38%)
HSVhsv(259, 68%, 58%)
CMYKcmyk(46.3%, 68.5%, 0%, 41.6%)
CIE-LABlab(29.18, 39.30, -50.86)
CIE-LCHlch(29.18, 64.28, 307.69°)
OKLaboklab(40.66% 0.0614 -0.1456)
OKLCHoklch(40.66% 0.158 292.9)
XYZxyz(9.7481, 5.9081, 29.0547)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F95 #74952F
analogous
#2F4195 #502F95 #832F95
triadic
#502F95 #95502F #2F9550
tetradic
#502F95 #952F41 #74952F #2F9583
square
#502F95 #952F41 #74952F #2F9583
split-complementary
#502F95 #95832F #41952F
monochromatic
#1E1238 #372066 #502F95 #693FC2 #8E6DD1

Accessibility & contrast

On white

9.63
#502F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#502F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F95
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F95#FFFFFF#000000##FFFFFF
##502F951.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#3C485E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502f95;
/* rgb */ color: rgb(80, 47, 149);
/* oklch */ color: oklch(40.7% 0.158 292.9);
Tailwind
colors: {
  custom: {
    50: '#876ab5',
    500: '#502f95',
    950: '#000000',
  },
}
SCSS
$custom: #502f95;
$custom-light: #876ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#502f95",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 259.412,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4066,
    "c": 0.15797,
    "h": 292.9
  },
  "luminance": 0.05908
}

Semantic roles & 50–950 ramp

primary
#502F95
secondary
#9EB867
accent
#DB4CAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502F95

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

Preview Lab → · Contrast checker → · Palette generator →

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