#502E9A#502E9A

#502E9A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.165 H 291.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#502E9A
RGBrgb(80, 46, 154)
HSLhsl(259, 54%, 39%)
HSVhsv(259, 70%, 60%)
CMYKcmyk(48.1%, 70.1%, 0%, 39.6%)
CIE-LABlab(29.39, 41.30, -53.58)
CIE-LCHlch(29.39, 67.64, 307.63°)
OKLaboklab(40.94% 0.0616 -0.1535)
OKLCHoklch(40.94% 0.165 291.9)
XYZxyz(10.1164, 5.9922, 31.1892)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E9A #789A2E
analogous
#2E429A #502E9A #862E9A
triadic
#502E9A #9A502E #2E9A50
tetradic
#502E9A #9A2E42 #789A2E #2E9A86
square
#502E9A #9A2E42 #789A2E #2E9A86
split-complementary
#502E9A #9A862E #429A2E
monochromatic
#1F123C #38206B #502E9A #6A3FC6 #8E6FD4

Accessibility & contrast

On white

9.55
#502E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#502E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E9A
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E9A#FFFFFF#000000##FFFFFF
##502E9A1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#394960
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502e9a;
/* rgb */ color: rgb(80, 46, 154);
/* oklch */ color: oklch(40.9% 0.165 291.9);
Tailwind
colors: {
  custom: {
    50: '#8869b9',
    500: '#502e9a',
    950: '#000000',
  },
}
SCSS
$custom: #502e9a;
$custom-light: #8869b9;
$custom-dark: #000000;
JSON
{
  "hex": "#502e9a",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 258.889,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40942,
    "c": 0.16543,
    "h": 291.9
  },
  "luminance": 0.05993
}

Semantic roles & 50–950 ramp

primary
#502E9A
secondary
#A1BB69
accent
#DD4AAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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