#502BA4#502BA4

#502BA4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.181 H 290.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#502BA4
RGBrgb(80, 43, 164)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 74%, 64%)
CMYKcmyk(51.2%, 73.8%, 0%, 35.7%)
CIE-LABlab(29.70, 45.74, -59.15)
CIE-LCHlch(29.70, 74.78, 307.71°)
OKLaboklab(41.43% 0.0624 -0.1699)
OKLCHoklch(41.43% 0.181 290.2)
XYZxyz(10.8711, 6.1131, 35.7219)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BA4 #7FA42B
analogous
#2B42A4 #502BA4 #8C2BA4
triadic
#502BA4 #A4502B #2BA450
tetradic
#502BA4 #A42B42 #7FA42B #2BA48C
square
#502BA4 #A42B42 #7FA42B #2BA48C
split-complementary
#502BA4 #A48C2B #42A42B
monochromatic
#211243 #381E74 #502BA4 #6B3FCD #9070D9

Accessibility & contrast

On white

9.45
#502BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502BA4
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BA4#FFFFFF#000000##FFFFFF
##502BA41.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#324B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502ba4;
/* rgb */ color: rgb(80, 43, 164);
/* oklch */ color: oklch(41.4% 0.181 290.2);
Tailwind
colors: {
  custom: {
    50: '#8a68c0',
    500: '#502ba4',
    950: '#000000',
  },
}
SCSS
$custom: #502ba4;
$custom-light: #8a68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#502ba4",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 258.347,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41427,
    "c": 0.18096,
    "h": 290.2
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#502BA4
secondary
#A6C16A
accent
#E246B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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