#502B92#502B92

#502B92 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.159 H 294.5°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#502B92
RGBrgb(80, 43, 146)
HSLhsl(262, 54%, 37%)
HSVhsv(262, 71%, 57%)
CMYKcmyk(45.2%, 70.5%, 0%, 42.7%)
CIE-LABlab(28.14, 40.64, -50.72)
CIE-LCHlch(28.14, 65.00, 308.71°)
OKLaboklab(39.84% 0.0661 -0.1451)
OKLCHoklch(39.84% 0.159 294.5)
XYZxyz(9.3590, 5.5083, 27.7587)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B92 #6D922B
analogous
#2B3A92 #502B92 #832B92
triadic
#502B92 #92502B #2B9250
tetradic
#502B92 #922B3A #6D922B #2B9283
square
#502B92 #922B3A #6D922B #2B9283
split-complementary
#502B92 #92832B #3A922B
monochromatic
#1C0F33 #361D63 #502B92 #6A39C1 #8C66D2

Accessibility & contrast

On white

9.99
#502B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#502B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B92
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B92#FFFFFF#000000##FFFFFF
##502B921.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004395
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#3E445B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502b92;
/* rgb */ color: rgb(80, 43, 146);
/* oklch */ color: oklch(39.8% 0.159 294.5);
Tailwind
colors: {
  custom: {
    50: '#8767b3',
    500: '#502b92',
    950: '#000000',
  },
}
SCSS
$custom: #502b92;
$custom-light: #8767b3;
$custom-dark: #000000;
JSON
{
  "hex": "#502b92",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 146
  },
  "hsl": {
    "h": 261.553,
    "s": 54.497,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39836,
    "c": 0.15946,
    "h": 294.5
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#502B92
secondary
#99B861
accent
#DE4AA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502B92

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

Preview Lab → · Contrast checker → · Palette generator →

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