#502BC3#502BC3

#502BC3 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.217 H 284.5°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#502BC3
RGBrgb(80, 43, 195)
HSLhsl(255, 64%, 47%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(59%, 77.9%, 0%, 23.5%)
CIE-LABlab(32.64, 54.52, -72.77)
CIE-LCHlch(32.64, 90.93, 306.84°)
OKLaboklab(44.38% 0.0541 -0.2097)
OKLCHoklch(44.38% 0.217 284.5)
XYZxyz(14.0195, 7.3725, 52.3035)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BC3 #9EC32B
analogous
#2B52C3 #502BC3 #9C2BC3
triadic
#502BC3 #C3502B #2BC350
tetradic
#502BC3 #C32B52 #9EC32B #2BC39C
square
#502BC3 #C32B52 #9EC32B #2BC39C
split-complementary
#502BC3 #C39C2B #52C32B
monochromatic
#27155F #3B2091 #502BC3 #7352D9 #9C84E4

Accessibility & contrast

On white

8.49
#502BC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#502BC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BC3
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BC3#FFFFFF#000000##FFFFFF
##502BC31.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C7
Deuteranopia (green-blind)
#0048C0
Tritanopia (blue-blind)
#045877
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502bc3;
/* rgb */ color: rgb(80, 43, 195);
/* oklch */ color: oklch(44.4% 0.217 284.5);
Tailwind
colors: {
  custom: {
    50: '#8f6ad6',
    500: '#502bc3',
    950: '#000000',
  },
}
SCSS
$custom: #502bc3;
$custom-light: #8f6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#502bc3",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 195
  },
  "hsl": {
    "h": 254.605,
    "s": 63.866,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44384,
    "c": 0.21659,
    "h": 284.5
  },
  "luminance": 0.07373
}

Semantic roles & 50–950 ramp

primary
#502BC3
secondary
#BACD7D
accent
#E741BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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