#502D93#502D93

#502D93 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.158 H 293.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#502D93
RGBrgb(80, 45, 147)
HSLhsl(261, 53%, 38%)
HSVhsv(261, 69%, 58%)
CMYKcmyk(45.6%, 69.4%, 0%, 42.4%)
CIE-LABlab(28.61, 39.84, -50.56)
CIE-LCHlch(28.61, 64.37, 308.24°)
OKLaboklab(40.2% 0.0638 -0.1446)
OKLCHoklch(40.2% 0.158 293.8)
XYZxyz(9.5117, 5.6886, 28.1950)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D93 #70932D
analogous
#2D3D93 #502D93 #832D93
triadic
#502D93 #93502D #2D9350
tetradic
#502D93 #932D3D #70932D #2D9383
square
#502D93 #932D3D #70932D #2D9383
split-complementary
#502D93 #93832D #3D932D
monochromatic
#1D1035 #361F64 #502D93 #693BC2 #8D69D1

Accessibility & contrast

On white

9.82
#502D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#502D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D93
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D93#FFFFFF#000000##FFFFFF
##502D931.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004596
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#3D465C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502d93;
/* rgb */ color: rgb(80, 45, 147);
/* oklch */ color: oklch(40.2% 0.158 293.8);
Tailwind
colors: {
  custom: {
    50: '#8769b3',
    500: '#502d93',
    950: '#000000',
  },
}
SCSS
$custom: #502d93;
$custom-light: #8769b3;
$custom-dark: #000000;
JSON
{
  "hex": "#502d93",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 147
  },
  "hsl": {
    "h": 260.588,
    "s": 53.125,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40203,
    "c": 0.15811,
    "h": 293.8
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

primary
#502D93
secondary
#9BB864
accent
#DD4BAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D93

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

Preview Lab → · Contrast checker → · Palette generator →

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