#502E7B#502E7B

#502E7B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.126 H 301.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#502E7B
RGBrgb(80, 46, 123)
HSLhsl(266, 46%, 33%)
HSVhsv(266, 63%, 48%)
CMYKcmyk(35%, 62.6%, 0%, 51.8%)
CIE-LABlab(26.99, 32.54, -38.24)
CIE-LCHlch(26.99, 50.21, 310.40°)
OKLaboklab(38.45% 0.0651 -0.1084)
OKLCHoklch(38.45% 0.126 301)
XYZxyz(7.8596, 5.0895, 19.3033)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E7B #597B2E
analogous
#2E327B #502E7B #762E7B
triadic
#502E7B #7B502E #2E7B50
tetradic
#502E7B #7B2E32 #597B2E #2E7B76
square
#502E7B #7B2E32 #597B2E #2E7B76
split-complementary
#502E7B #7B762E #327B2E
monochromatic
#160D22 #331D4E #502E7B #6D3FA8 #8C60C3

Accessibility & contrast

On white

10.41
#502E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#502E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E7B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E7B#FFFFFF#000000##FFFFFF
##502E7B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#163F79
Tritanopia (blue-blind)
#473E50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502e7b;
/* rgb */ color: rgb(80, 46, 123);
/* oklch */ color: oklch(38.5% 0.126 301.0);
Tailwind
colors: {
  custom: {
    50: '#8468a2',
    500: '#502e7b',
    950: '#000000',
  },
}
SCSS
$custom: #502e7b;
$custom-light: #8468a2;
$custom-dark: #000000;
JSON
{
  "hex": "#502e7b",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 266.494,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3845,
    "c": 0.12645,
    "h": 301
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#502E7B
secondary
#87AA5B
accent
#D5539C
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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