#502BA3#502BA3

#502BA3 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.180 H 290.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#502BA3
RGBrgb(80, 43, 163)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 74%, 64%)
CMYKcmyk(50.9%, 73.6%, 0%, 36.1%)
CIE-LABlab(29.61, 45.46, -58.70)
CIE-LCHlch(29.61, 74.24, 307.76°)
OKLaboklab(41.34% 0.0626 -0.1685)
OKLCHoklch(41.34% 0.18 290.4)
XYZxyz(10.7811, 6.0771, 35.2482)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BA3 #7EA32B
analogous
#2B42A3 #502BA3 #8C2BA3
triadic
#502BA3 #A3502B #2BA350
tetradic
#502BA3 #A32B42 #7EA32B #2BA38C
square
#502BA3 #A32B42 #7EA32B #2BA38C
split-complementary
#502BA3 #A38C2B #42A32B
monochromatic
#201142 #381E73 #502BA3 #6A3FCC #906FD9

Accessibility & contrast

On white

9.48
#502BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#502BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BA3
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BA3#FFFFFF#000000##FFFFFF
##502BA31.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#334B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502ba3;
/* rgb */ color: rgb(80, 43, 163);
/* oklch */ color: oklch(41.3% 0.180 290.4);
Tailwind
colors: {
  custom: {
    50: '#8a68bf',
    500: '#502ba3',
    950: '#000000',
  },
}
SCSS
$custom: #502ba3;
$custom-light: #8a68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#502ba3",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 258.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41336,
    "c": 0.17978,
    "h": 290.4
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

primary
#502BA3
secondary
#A5C06A
accent
#E146B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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