#502CBD#502CBD

#502CBD is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.209 H 285.3°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#502CBD
RGBrgb(80, 44, 189)
HSLhsl(255, 62%, 46%)
HSVhsv(255, 77%, 74%)
CMYKcmyk(57.7%, 76.7%, 0%, 25.9%)
CIE-LABlab(32.21, 52.36, -69.94)
CIE-LCHlch(32.21, 87.37, 306.82°)
OKLaboklab(43.91% 0.0552 -0.2015)
OKLCHoklch(43.91% 0.209 285.3)
XYZxyz(13.3915, 7.1802, 48.8145)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CBD #99BD2C
analogous
#2C50BD #502CBD #992CBD
triadic
#502CBD #BD502C #2CBD50
tetradic
#502CBD #BD2C50 #99BD2C #2CBD99
square
#502CBD #BD2C50 #99BD2C #2CBD99
split-complementary
#502CBD #BD992C #50BD2C
monochromatic
#26155A #3B208B #502CBD #7150D6 #9982E2

Accessibility & contrast

On white

8.62
#502CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#502CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CBD
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CBD#FFFFFF#000000##FFFFFF
##502CBD1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#165673
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502cbd;
/* rgb */ color: rgb(80, 44, 189);
/* oklch */ color: oklch(43.9% 0.209 285.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ad2',
    500: '#502cbd',
    950: '#000000',
  },
}
SCSS
$custom: #502cbd;
$custom-light: #8e6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#502cbd",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 254.897,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43909,
    "c": 0.20888,
    "h": 285.3
  },
  "luminance": 0.07181
}

Semantic roles & 50–950 ramp

primary
#502CBD
secondary
#B7CB7A
accent
#E542BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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