#502F82#502F82

#502F82 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.134 H 298.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#502F82
RGBrgb(80, 47, 130)
HSLhsl(264, 47%, 35%)
HSVhsv(264, 64%, 51%)
CMYKcmyk(38.5%, 63.8%, 0%, 49%)
CIE-LABlab(27.71, 33.90, -41.48)
CIE-LCHlch(27.71, 53.56, 309.26°)
OKLaboklab(39.14% 0.0635 -0.1179)
OKLCHoklch(39.14% 0.134 298.3)
XYZxyz(8.3530, 5.3501, 21.7074)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F82 #61822F
analogous
#2F3882 #502F82 #7A2F82
triadic
#502F82 #82502F #2F8250
tetradic
#502F82 #822F38 #61822F #2F827A
square
#502F82 #822F38 #61822F #2F827A
split-complementary
#502F82 #827A2F #38822F
monochromatic
#190E28 #341F55 #502F82 #6C3FAF #8C64C7

Accessibility & contrast

On white

10.14
#502F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#502F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F82
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F82#FFFFFF#000000##FFFFFF
##502F821.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#0A4180
Tritanopia (blue-blind)
#444154
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502f82;
/* rgb */ color: rgb(80, 47, 130);
/* oklch */ color: oklch(39.1% 0.134 298.3);
Tailwind
colors: {
  custom: {
    50: '#8569a7',
    500: '#502f82',
    950: '#000000',
  },
}
SCSS
$custom: #502f82;
$custom-light: #8569a7;
$custom-dark: #000000;
JSON
{
  "hex": "#502f82",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 263.855,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39135,
    "c": 0.13392,
    "h": 298.3
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#502F82
secondary
#8FAE5F
accent
#D751A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502F82

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

Preview Lab → · Contrast checker → · Palette generator →

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