#502B85#502B85

#502B85 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.144 H 298.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#502B85
RGBrgb(80, 43, 133)
HSLhsl(265, 51%, 35%)
HSVhsv(265, 68%, 52%)
CMYKcmyk(39.8%, 67.7%, 0%, 47.8%)
CIE-LABlab(27.09, 37.01, -44.35)
CIE-LCHlch(27.09, 57.77, 309.85°)
OKLaboklab(38.76% 0.068 -0.1264)
OKLCHoklch(38.76% 0.144 298.3)
XYZxyz(8.4047, 5.1266, 22.7325)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B85 #60852B
analogous
#2B3385 #502B85 #7D2B85
triadic
#502B85 #85502B #2B8550
tetradic
#502B85 #852B33 #60852B #2B857D
square
#502B85 #852B33 #60852B #2B857D
split-complementary
#502B85 #857D2B #33852B
monochromatic
#180D29 #341C57 #502B85 #6C3AB3 #8C5FCB

Accessibility & contrast

On white

10.37
#502B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502B85
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B85#FFFFFF#000000##FFFFFF
##502B851.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#434054
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502b85;
/* rgb */ color: rgb(80, 43, 133);
/* oklch */ color: oklch(38.8% 0.144 298.3);
Tailwind
colors: {
  custom: {
    50: '#8667a9',
    500: '#502b85',
    950: '#000000',
  },
}
SCSS
$custom: #502b85;
$custom-light: #8667a9;
$custom-dark: #000000;
JSON
{
  "hex": "#502b85",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 264.667,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3876,
    "c": 0.14354,
    "h": 298.3
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#502B85
secondary
#8EB15B
accent
#DB4DA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502B85

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

Preview Lab → · Contrast checker → · Palette generator →

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