#502CB2#502CB2

#502CB2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.196 H 287.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#502CB2
RGBrgb(80, 44, 178)
HSLhsl(256, 60%, 44%)
HSVhsv(256, 75%, 70%)
CMYKcmyk(55.1%, 75.3%, 0%, 30.2%)
CIE-LABlab(31.16, 49.23, -65.15)
CIE-LCHlch(31.16, 81.66, 307.07°)
OKLaboklab(42.85% 0.0581 -0.1874)
OKLCHoklch(42.85% 0.196 287.2)
XYZxyz(12.2424, 6.7205, 42.7630)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CB2 #8EB22C
analogous
#2C4BB2 #502CB2 #932CB2
triadic
#502CB2 #B2502C #2CB250
tetradic
#502CB2 #B22C4B #8EB22C #2CB293
square
#502CB2 #B22C4B #8EB22C #2CB293
split-complementary
#502CB2 #B2932C #4BB22C
monochromatic
#241450 #3A2081 #502CB2 #6E49D2 #957ADE

Accessibility & contrast

On white

8.96
#502CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#502CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CB2
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CB2#FFFFFF#000000##FFFFFF
##502CB21.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#26516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502cb2;
/* rgb */ color: rgb(80, 44, 178);
/* oklch */ color: oklch(42.9% 0.196 287.2);
Tailwind
colors: {
  custom: {
    50: '#8c69ca',
    500: '#502cb2',
    950: '#000000',
  },
}
SCSS
$custom: #502cb2;
$custom-light: #8c69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#502cb2",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 256.119,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42853,
    "c": 0.19624,
    "h": 287.2
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#502CB2
secondary
#B0C673
accent
#E444B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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