#502F91#502F91

#502F91 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.153 H 293.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#502F91
RGBrgb(80, 47, 145)
HSLhsl(260, 51%, 38%)
HSVhsv(260, 68%, 57%)
CMYKcmyk(44.8%, 67.6%, 0%, 43.1%)
CIE-LABlab(28.86, 38.15, -48.93)
CIE-LCHlch(28.86, 62.05, 307.95°)
OKLaboklab(40.33% 0.062 -0.1399)
OKLCHoklch(40.33% 0.153 293.9)
XYZxyz(9.4342, 5.7826, 27.4017)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F91 #70912F
analogous
#2F3F91 #502F91 #812F91
triadic
#502F91 #91502F #2F9150
tetradic
#502F91 #912F3F #70912F #2F9181
square
#502F91 #912F3F #70912F #2F9181
split-complementary
#502F91 #91812F #3F912F
monochromatic
#1D1135 #362063 #502F91 #693EBF #8D6BCF

Accessibility & contrast

On white

9.74
#502F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#502F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F91
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F91#FFFFFF#000000##FFFFFF
##502F911.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#3E465C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502f91;
/* rgb */ color: rgb(80, 47, 145);
/* oklch */ color: oklch(40.3% 0.153 293.9);
Tailwind
colors: {
  custom: {
    50: '#876ab2',
    500: '#502f91',
    950: '#000000',
  },
}
SCSS
$custom: #502f91;
$custom-light: #876ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#502f91",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 260.204,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40328,
    "c": 0.15299,
    "h": 293.9
  },
  "luminance": 0.05783
}

Semantic roles & 50–950 ramp

primary
#502F91
secondary
#9BB665
accent
#DB4DAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502F91

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

Preview Lab → · Contrast checker → · Palette generator →

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