#502E7F#502E7F

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

Color values

HEX#502E7F
RGBrgb(80, 46, 127)
HSLhsl(265, 47%, 34%)
HSVhsv(265, 64%, 50%)
CMYKcmyk(37%, 63.8%, 0%, 50.2%)
CIE-LABlab(27.27, 33.64, -40.30)
CIE-LCHlch(27.27, 52.49, 309.86°)
OKLaboklab(38.75% 0.0649 -0.1145)
OKLCHoklch(38.75% 0.132 299.5)
XYZxyz(8.1151, 5.1917, 20.6491)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E7F #5D7F2E
analogous
#2E357F #502E7F #792E7F
triadic
#502E7F #7F502E #2E7F50
tetradic
#502E7F #7F2E35 #5D7F2E #2E7F79
square
#502E7F #7F2E35 #5D7F2E #2E7F79
split-complementary
#502E7F #7F792E #357F2E
monochromatic
#170D25 #341E52 #502E7F #6C3EAC #8C61C6

Accessibility & contrast

On white

10.30
#502E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#502E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E7F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E7F#FFFFFF#000000##FFFFFF
##502E7F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#0F407D
Tritanopia (blue-blind)
#463F52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502e7f;
/* rgb */ color: rgb(80, 46, 127);
/* oklch */ color: oklch(38.7% 0.132 299.5);
Tailwind
colors: {
  custom: {
    50: '#8568a5',
    500: '#502e7f',
    950: '#000000',
  },
}
SCSS
$custom: #502e7f;
$custom-light: #8568a5;
$custom-dark: #000000;
JSON
{
  "hex": "#502e7f",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 265.185,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38749,
    "c": 0.13159,
    "h": 299.5
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#502E7F
secondary
#8BAD5C
accent
#D6519F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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