#502D66#502D66

#502D66 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.8% C 0.101 H 310.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#502D66
RGBrgb(80, 45, 102)
HSLhsl(277, 39%, 29%)
HSVhsv(277, 56%, 40%)
CMYKcmyk(21.6%, 55.9%, 0%, 60%)
CIE-LABlab(25.39, 27.58, -27.36)
CIE-LCHlch(25.39, 38.85, 315.23°)
OKLaboklab(36.83% 0.0659 -0.0766)
OKLCHoklch(36.83% 0.101 310.7)
XYZxyz(6.6445, 4.5417, 13.0944)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D66 #43662D
analogous
#342D66 #502D66 #662D60
triadic
#502D66 #66502D #2D6650
tetradic
#502D66 #66342D #43662D #2D6066
square
#502D66 #66342D #43662D #2D6066
split-complementary
#502D66 #60662D #2D6634
monochromatic
#110915 #2F1A3C #502D66 #714090 #9158B5

Accessibility & contrast

On white

11.00
#502D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#502D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D66
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D66#FFFFFF#000000##FFFFFF
##502D661.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3A68
Deuteranopia (green-blind)
#293D65
Tritanopia (blue-blind)
#4D3745
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #502d66;
/* rgb */ color: rgb(80, 45, 102);
/* oklch */ color: oklch(36.8% 0.101 310.7);
Tailwind
colors: {
  custom: {
    50: '#836792',
    500: '#502d66',
    950: '#000000',
  },
}
SCSS
$custom: #502d66;
$custom-light: #836792;
$custom-dark: #000000;
JSON
{
  "hex": "#502d66",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 102
  },
  "hsl": {
    "h": 276.842,
    "s": 38.776,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36832,
    "c": 0.10104,
    "h": 310.7
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#502D66
secondary
#709857
accent
#CF5986
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #502D66

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

Preview Lab → · Contrast checker → · Palette generator →

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