#502DCA#502DCA

#502DCA is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.3% C 0.223 H 283.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#502DCA
RGBrgb(80, 45, 202)
HSLhsl(253, 64%, 48%)
HSVhsv(253, 78%, 79%)
CMYKcmyk(60.4%, 77.7%, 0%, 20.8%)
CIE-LABlab(33.66, 55.58, -75.19)
CIE-LCHlch(33.66, 93.50, 306.47°)
OKLaboklab(45.3% 0.0509 -0.2168)
OKLCHoklch(45.3% 0.223 283.2)
XYZxyz(14.9040, 7.8455, 56.5946)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DCA #A7CA2D
analogous
#2D58CA #502DCA #9E2DCA
triadic
#502DCA #CA502D #2DCA50
tetradic
#502DCA #CA2D58 #A7CA2D #2DCA9E
square
#502DCA #CA2D58 #A7CA2D #2DCA9E
split-complementary
#502DCA #CA9E2D #58CA2D
monochromatic
#281766 #3C2298 #502DCA #775ADA #A08CE5

Accessibility & contrast

On white

8.17
#502DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#502DCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DCA
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DCA#FFFFFF#000000##FFFFFF
##502DCA1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#004AC7
Tritanopia (blue-blind)
#005B7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #502dca;
/* rgb */ color: rgb(80, 45, 202);
/* oklch */ color: oklch(45.3% 0.223 283.2);
Tailwind
colors: {
  custom: {
    50: '#906bdb',
    500: '#502dca',
    950: '#000000',
  },
}
SCSS
$custom: #502dca;
$custom-light: #906bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#502dca",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 253.376,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45303,
    "c": 0.22268,
    "h": 283.2
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

primary
#502DCA
secondary
#BFCF83
accent
#E741C2
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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