#502E91#502E91

#502E91 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.154 H 294.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#502E91
RGBrgb(80, 46, 145)
HSLhsl(261, 52%, 37%)
HSVhsv(261, 68%, 57%)
CMYKcmyk(44.8%, 68.3%, 0%, 43.1%)
CIE-LABlab(28.65, 38.72, -49.26)
CIE-LCHlch(28.65, 62.66, 308.16°)
OKLaboklab(40.18% 0.0631 -0.1408)
OKLCHoklch(40.18% 0.154 294.1)
XYZxyz(9.3947, 5.7035, 27.3885)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E91 #6F912E
analogous
#2E3E91 #502E91 #812E91
triadic
#502E91 #91502E #2E9150
tetradic
#502E91 #912E3E #6F912E #2E9181
square
#502E91 #912E3E #6F912E #2E9181
split-complementary
#502E91 #91812E #3E912E
monochromatic
#1D1134 #361F63 #502E91 #6A3DBF #8D6AD0

Accessibility & contrast

On white

9.81
#502E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#502E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E91
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E91#FFFFFF#000000##FFFFFF
##502E911.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502e91;
/* rgb */ color: rgb(80, 46, 145);
/* oklch */ color: oklch(40.2% 0.154 294.1);
Tailwind
colors: {
  custom: {
    50: '#8769b2',
    500: '#502e91',
    950: '#000000',
  },
}
SCSS
$custom: #502e91;
$custom-light: #8769b2;
$custom-dark: #000000;
JSON
{
  "hex": "#502e91",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 145
  },
  "hsl": {
    "h": 260.606,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4018,
    "c": 0.15433,
    "h": 294.1
  },
  "luminance": 0.05704
}

Semantic roles & 50–950 ramp

primary
#502E91
secondary
#9AB764
accent
#DB4DAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502E91

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

Preview Lab → · Contrast checker → · Palette generator →

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