#502BA0#502BA0

#502BA0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.176 H 291.0°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#502BA0
RGBrgb(80, 43, 160)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 73%, 63%)
CMYKcmyk(50%, 73.1%, 0%, 37.3%)
CIE-LABlab(29.34, 44.60, -57.32)
CIE-LCHlch(29.34, 72.63, 307.89°)
OKLaboklab(41.06% 0.0633 -0.1645)
OKLCHoklch(41.06% 0.176 291)
XYZxyz(10.5155, 5.9709, 33.8493)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BA0 #7BA02B
analogous
#2B41A0 #502BA0 #8A2BA0
triadic
#502BA0 #A0502B #2BA050
tetradic
#502BA0 #A02B41 #7BA02B #2BA08A
square
#502BA0 #A02B41 #7BA02B #2BA08A
split-complementary
#502BA0 #A08A2B #41A02B
monochromatic
#201140 #381E70 #502BA0 #6A3DCB #8F6ED8

Accessibility & contrast

On white

9.57
#502BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#502BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BA0
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BA0#FFFFFF#000000##FFFFFF
##502BA01.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#354A63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502ba0;
/* rgb */ color: rgb(80, 43, 160);
/* oklch */ color: oklch(41.1% 0.176 291.0);
Tailwind
colors: {
  custom: {
    50: '#8968bd',
    500: '#502ba0',
    950: '#000000',
  },
}
SCSS
$custom: #502ba0;
$custom-light: #8968bd;
$custom-dark: #000000;
JSON
{
  "hex": "#502ba0",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 160
  },
  "hsl": {
    "h": 258.974,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41064,
    "c": 0.17624,
    "h": 291
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#502BA0
secondary
#A3BF68
accent
#E147B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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