#502D64#502D64

#502D64 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.7% C 0.098 H 311.9°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#502D64
RGBrgb(80, 45, 100)
HSLhsl(278, 38%, 28%)
HSVhsv(278, 55%, 39%)
CMYKcmyk(20%, 55%, 0%, 60.8%)
CIE-LABlab(25.27, 27.08, -26.25)
CIE-LCHlch(25.27, 37.72, 315.88°)
OKLaboklab(36.71% 0.0657 -0.0733)
OKLCHoklch(36.71% 0.098 311.9)
XYZxyz(6.5465, 4.5025, 12.5783)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D64 #41642D
analogous
#342D64 #502D64 #642D5C
triadic
#502D64 #64502D #2D6450
tetradic
#502D64 #64342D #41642D #2D5C64
square
#502D64 #64342D #41642D #2D5C64
split-complementary
#502D64 #5C642D #2D6434
monochromatic
#110915 #2E1A3A #502D64 #72408E #9258B4

Accessibility & contrast

On white

11.05
#502D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#502D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D64
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D64#FFFFFF#000000##FFFFFF
##502D641.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3A66
Deuteranopia (green-blind)
#2A3D63
Tritanopia (blue-blind)
#4E3644
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #502d64;
/* rgb */ color: rgb(80, 45, 100);
/* oklch */ color: oklch(36.7% 0.098 311.9);
Tailwind
colors: {
  custom: {
    50: '#836790',
    500: '#502d64',
    950: '#000000',
  },
}
SCSS
$custom: #502d64;
$custom-light: #836790;
$custom-dark: #000000;
JSON
{
  "hex": "#502d64",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 100
  },
  "hsl": {
    "h": 278.182,
    "s": 37.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36705,
    "c": 0.09849,
    "h": 311.9
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#502D64
secondary
#6E9657
accent
#CE5A84
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B060C
muted
#7C7A7D

Preview Lab

Preview with #502D64

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

Preview Lab → · Contrast checker → · Palette generator →

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