#502BAE#502BAE

#502BAE is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.193 H 288.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#502BAE
RGBrgb(80, 43, 174)
HSLhsl(257, 60%, 43%)
HSVhsv(257, 75%, 68%)
CMYKcmyk(54%, 75.3%, 0%, 31.8%)
CIE-LABlab(30.61, 48.58, -63.66)
CIE-LCHlch(30.61, 80.08, 307.35°)
OKLaboklab(42.35% 0.0599 -0.1831)
OKLCHoklch(42.35% 0.193 288.1)
XYZxyz(11.8099, 6.4886, 40.6663)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BAE #89AE2B
analogous
#2B47AE #502BAE #922BAE
triadic
#502BAE #AE502B #2BAE50
tetradic
#502BAE #AE2B47 #89AE2B #2BAE92
square
#502BAE #AE2B47 #89AE2B #2BAE92
split-complementary
#502BAE #AE922B #47AE2B
monochromatic
#23134C #391F7D #502BAE #6D45D1 #9376DD

Accessibility & contrast

On white

9.14
#502BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#502BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BAE
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BAE#FFFFFF#000000##FFFFFF
##502BAE1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#2A4F6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502bae;
/* rgb */ color: rgb(80, 43, 174);
/* oklch */ color: oklch(42.4% 0.193 288.1);
Tailwind
colors: {
  custom: {
    50: '#8b68c7',
    500: '#502bae',
    950: '#000000',
  },
}
SCSS
$custom: #502bae;
$custom-light: #8b68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#502bae",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 256.947,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42354,
    "c": 0.19264,
    "h": 288.1
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#502BAE
secondary
#ADC570
accent
#E444B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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