#502BA7#502BA7

#502BA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.184 H 289.5°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#502BA7
RGBrgb(80, 43, 167)
HSLhsl(258, 59%, 41%)
HSVhsv(258, 74%, 65%)
CMYKcmyk(52.1%, 74.3%, 0%, 34.5%)
CIE-LABlab(29.97, 46.59, -60.52)
CIE-LCHlch(29.97, 76.38, 307.59°)
OKLaboklab(41.7% 0.0617 -0.1739)
OKLCHoklch(41.7% 0.184 289.5)
XYZxyz(11.1452, 6.2228, 37.1656)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BA7 #82A72B
analogous
#2B44A7 #502BA7 #8E2BA7
triadic
#502BA7 #A7502B #2BA750
tetradic
#502BA7 #A72B44 #82A72B #2BA78E
square
#502BA7 #A72B44 #82A72B #2BA78E
split-complementary
#502BA7 #A78E2B #44A72B
monochromatic
#211246 #391E76 #502BA7 #6B41CE #9172DB

Accessibility & contrast

On white

9.36
#502BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#502BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BA7
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BA7#FFFFFF#000000##FFFFFF
##502BA71.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#304C67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ba7;
/* rgb */ color: rgb(80, 43, 167);
/* oklch */ color: oklch(41.7% 0.184 289.5);
Tailwind
colors: {
  custom: {
    50: '#8a68c2',
    500: '#502ba7',
    950: '#000000',
  },
}
SCSS
$custom: #502ba7;
$custom-light: #8a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#502ba7",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 257.903,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41702,
    "c": 0.18449,
    "h": 289.5
  },
  "luminance": 0.06223
}

Semantic roles & 50–950 ramp

primary
#502BA7
secondary
#A8C26C
accent
#E246B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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