#502CBB#502CBB

#502CBB is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.7% C 0.207 H 285.6°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#502CBB
RGBrgb(80, 44, 187)
HSLhsl(255, 62%, 45%)
HSVhsv(255, 76%, 73%)
CMYKcmyk(57.2%, 76.5%, 0%, 26.7%)
CIE-LABlab(32.02, 51.79, -69.08)
CIE-LCHlch(32.02, 86.34, 306.86°)
OKLaboklab(43.72% 0.0557 -0.1989)
OKLCHoklch(43.72% 0.207 285.6)
XYZxyz(13.1759, 7.0939, 47.6790)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CBB #97BB2C
analogous
#2C4FBB #502CBB #972CBB
triadic
#502CBB #BB502C #2CBB50
tetradic
#502CBB #BB2C4F #97BB2C #2CBB97
square
#502CBB #BB2C4F #97BB2C #2CBB97
split-complementary
#502CBB #BB972C #4FBB2C
monochromatic
#261558 #3B2089 #502CBB #714FD6 #9980E1

Accessibility & contrast

On white

8.68
#502CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#502CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CBB
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CBB#FFFFFF#000000##FFFFFF
##502CBB1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0047B8
Tritanopia (blue-blind)
#195572
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502cbb;
/* rgb */ color: rgb(80, 44, 187);
/* oklch */ color: oklch(43.7% 0.207 285.6);
Tailwind
colors: {
  custom: {
    50: '#8d6ad1',
    500: '#502cbb',
    950: '#000000',
  },
}
SCSS
$custom: #502cbb;
$custom-light: #8d6ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#502cbb",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 255.105,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43715,
    "c": 0.2066,
    "h": 285.6
  },
  "luminance": 0.07095
}

Semantic roles & 50–950 ramp

primary
#502CBB
secondary
#B6CA79
accent
#E543BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #502CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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