#502CB3#502CB3

#502CB3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.197 H 287.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#502CB3
RGBrgb(80, 44, 179)
HSLhsl(256, 61%, 44%)
HSVhsv(256, 75%, 70%)
CMYKcmyk(55.3%, 75.4%, 0%, 29.8%)
CIE-LABlab(31.26, 49.51, -65.59)
CIE-LCHlch(31.26, 82.18, 307.05°)
OKLaboklab(42.95% 0.0578 -0.1887)
OKLCHoklch(42.95% 0.197 287)
XYZxyz(12.3432, 6.7608, 43.2937)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CB3 #8FB32C
analogous
#2C4BB3 #502CB3 #932CB3
triadic
#502CB3 #B3502C #2CB350
tetradic
#502CB3 #B32C4B #8FB32C #2CB393
square
#502CB3 #B32C4B #8FB32C #2CB393
split-complementary
#502CB3 #B3932C #4BB32C
monochromatic
#241451 #3A2082 #502CB3 #6E4AD2 #957BDF

Accessibility & contrast

On white

8.93
#502CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#502CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CB3
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CB3#FFFFFF#000000##FFFFFF
##502CB31.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#25526E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502cb3;
/* rgb */ color: rgb(80, 44, 179);
/* oklch */ color: oklch(42.9% 0.197 287.0);
Tailwind
colors: {
  custom: {
    50: '#8c69cb',
    500: '#502cb3',
    950: '#000000',
  },
}
SCSS
$custom: #502cb3;
$custom-light: #8c69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#502cb3",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 256,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42948,
    "c": 0.1974,
    "h": 287
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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