#502E7E#502E7E

#502E7E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.130 H 299.9°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#502E7E
RGBrgb(80, 46, 126)
HSLhsl(266, 47%, 34%)
HSVhsv(266, 63%, 49%)
CMYKcmyk(36.5%, 63.5%, 0%, 50.6%)
CIE-LABlab(27.20, 33.36, -39.78)
CIE-LCHlch(27.20, 51.92, 309.99°)
OKLaboklab(38.67% 0.0649 -0.113)
OKLCHoklch(38.67% 0.13 299.9)
XYZxyz(8.0502, 5.1658, 20.3076)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E7E #5C7E2E
analogous
#2E347E #502E7E #782E7E
triadic
#502E7E #7E502E #2E7E50
tetradic
#502E7E #7E2E34 #5C7E2E #2E7E78
square
#502E7E #7E2E34 #5C7E2E #2E7E78
split-complementary
#502E7E #7E782E #347E2E
monochromatic
#170D24 #341E51 #502E7E #6C3EAB #8C61C5

Accessibility & contrast

On white

10.33
#502E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#502E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E7E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E7E#FFFFFF#000000##FFFFFF
##502E7E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#11407C
Tritanopia (blue-blind)
#463F51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502e7e;
/* rgb */ color: rgb(80, 46, 126);
/* oklch */ color: oklch(38.7% 0.130 299.9);
Tailwind
colors: {
  custom: {
    50: '#8568a4',
    500: '#502e7e',
    950: '#000000',
  },
}
SCSS
$custom: #502e7e;
$custom-light: #8568a4;
$custom-dark: #000000;
JSON
{
  "hex": "#502e7e",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 265.5,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.13031,
    "h": 299.9
  },
  "luminance": 0.05166
}

Semantic roles & 50–950 ramp

primary
#502E7E
secondary
#8AAC5C
accent
#D6529E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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