#502F85#502F85

#502F85 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.138 H 297.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#502F85
RGBrgb(80, 47, 133)
HSLhsl(263, 48%, 35%)
HSVhsv(263, 65%, 52%)
CMYKcmyk(39.8%, 64.7%, 0%, 47.8%)
CIE-LABlab(27.93, 34.74, -42.99)
CIE-LCHlch(27.93, 55.27, 308.94°)
OKLaboklab(39.37% 0.0632 -0.1224)
OKLCHoklch(39.37% 0.138 297.3)
XYZxyz(8.5573, 5.4318, 22.7833)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F85 #64852F
analogous
#2F3985 #502F85 #7B2F85
triadic
#502F85 #85502F #2F8550
tetradic
#502F85 #852F39 #64852F #2F857B
square
#502F85 #852F39 #64852F #2F857B
split-complementary
#502F85 #857B2F #39852F
monochromatic
#1A0F2B #351F58 #502F85 #6B3FB2 #8C66C9

Accessibility & contrast

On white

10.07
#502F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#502F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502F85
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F85#FFFFFF#000000##FFFFFF
##502F851.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#024183
Tritanopia (blue-blind)
#434255
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502f85;
/* rgb */ color: rgb(80, 47, 133);
/* oklch */ color: oklch(39.4% 0.138 297.3);
Tailwind
colors: {
  custom: {
    50: '#8569a9',
    500: '#502f85',
    950: '#000000',
  },
}
SCSS
$custom: #502f85;
$custom-light: #8569a9;
$custom-dark: #000000;
JSON
{
  "hex": "#502f85",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 263.023,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39366,
    "c": 0.13778,
    "h": 297.3
  },
  "luminance": 0.05432
}

Semantic roles & 50–950 ramp

primary
#502F85
secondary
#91B060
accent
#D750A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502F85

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

Preview Lab → · Contrast checker → · Palette generator →

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