#502DE2#502DE2

#502DE2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.249 H 280.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#502DE2
RGBrgb(80, 45, 226)
HSLhsl(252, 76%, 53%)
HSVhsv(252, 80%, 89%)
CMYKcmyk(64.6%, 80.1%, 0%, 11.4%)
CIE-LABlab(36.12, 62.31, -84.97)
CIE-LCHlch(36.12, 105.37, 306.25°)
OKLaboklab(47.74% 0.0438 -0.2453)
OKLCHoklch(47.74% 0.249 280.1)
XYZxyz(17.9698, 9.0718, 72.7408)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DE2 #BFE22D
analogous
#2D64E2 #502DE2 #AA2DE2
triadic
#502DE2 #E2502D #2DE250
tetradic
#502DE2 #E22D64 #BFE22D #2DE2AA
square
#502DE2 #E22D64 #BFE22D #2DE2AA
split-complementary
#502DE2 #E2AA2D #64E22D
monochromatic
#281283 #3819B8 #502DE2 #7D63E9 #AA99F1

Accessibility & contrast

On white

7.46
#502DE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#502DE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DE2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DE2#FFFFFF#000000##FFFFFF
##502DE21.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE7
Deuteranopia (green-blind)
#004EDF
Tritanopia (blue-blind)
#006589
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #502de2;
/* rgb */ color: rgb(80, 45, 226);
/* oklch */ color: oklch(47.7% 0.249 280.1);
Tailwind
colors: {
  custom: {
    50: '#946ced',
    500: '#502de2',
    950: '#000000',
  },
}
SCSS
$custom: #502de2;
$custom-light: #946ced;
$custom-dark: #000000;
JSON
{
  "hex": "#502de2",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 226
  },
  "hsl": {
    "h": 251.602,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47742,
    "c": 0.24919,
    "h": 280.1
  },
  "luminance": 0.09073
}

Semantic roles & 50–950 ramp

primary
#502DE2
secondary
#CDDC8E
accent
#F235CE
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #502DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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