#502E8A#502E8A

#502E8A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.146 H 296.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#502E8A
RGBrgb(80, 46, 138)
HSLhsl(262, 50%, 36%)
HSVhsv(262, 67%, 54%)
CMYKcmyk(42%, 66.7%, 0%, 45.9%)
CIE-LABlab(28.10, 36.73, -45.83)
CIE-LCHlch(28.10, 58.73, 308.70°)
OKLaboklab(39.61% 0.064 -0.1308)
OKLCHoklch(39.61% 0.146 296.1)
XYZxyz(8.8715, 5.4943, 24.6329)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E8A #688A2E
analogous
#2E3A8A #502E8A #7E2E8A
triadic
#502E8A #8A502E #2E8A50
tetradic
#502E8A #8A2E3A #688A2E #2E8A7E
square
#502E8A #8A2E3A #688A2E #2E8A7E
split-complementary
#502E8A #8A7E2E #3A8A2E
monochromatic
#1B0F2E #351F5C #502E8A #6B3DB8 #8C66CC

Accessibility & contrast

On white

10.01
#502E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#502E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E8A
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E8A#FFFFFF#000000##FFFFFF
##502E8A1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#414358
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502e8a;
/* rgb */ color: rgb(80, 46, 138);
/* oklch */ color: oklch(39.6% 0.146 296.1);
Tailwind
colors: {
  custom: {
    50: '#8669ad',
    500: '#502e8a',
    950: '#000000',
  },
}
SCSS
$custom: #502e8a;
$custom-light: #8669ad;
$custom-dark: #000000;
JSON
{
  "hex": "#502e8a",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 262.174,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39608,
    "c": 0.14556,
    "h": 296.1
  },
  "luminance": 0.05494
}

Semantic roles & 50–950 ramp

primary
#502E8A
secondary
#95B361
accent
#DA4EA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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