#502ECA#502ECA

#502ECA is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.222 H 283.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#502ECA
RGBrgb(80, 46, 202)
HSLhsl(253, 63%, 49%)
HSVhsv(253, 77%, 79%)
CMYKcmyk(60.4%, 77.2%, 0%, 20.8%)
CIE-LABlab(33.82, 55.11, -74.92)
CIE-LCHlch(33.82, 93.00, 306.34°)
OKLaboklab(45.42% 0.0503 -0.216)
OKLCHoklch(45.42% 0.222 283.1)
XYZxyz(14.9426, 7.9227, 56.6075)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502ECA #A8CA2E
analogous
#2E5ACA #502ECA #9E2ECA
triadic
#502ECA #CA502E #2ECA50
tetradic
#502ECA #CA2E5A #A8CA2E #2ECA9E
square
#502ECA #CA2E5A #A8CA2E #2ECA9E
split-complementary
#502ECA #CA9E2E #5ACA2E
monochromatic
#291766 #3C2398 #502ECA #775BDA #A08DE5

Accessibility & contrast

On white

8.12
#502ECA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#502ECA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502ECA
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502ECA#FFFFFF#000000##FFFFFF
##502ECA1.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#004AC7
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #502eca;
/* rgb */ color: rgb(80, 46, 202);
/* oklch */ color: oklch(45.4% 0.222 283.1);
Tailwind
colors: {
  custom: {
    50: '#906cdb',
    500: '#502eca',
    950: '#000000',
  },
}
SCSS
$custom: #502eca;
$custom-light: #906cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#502eca",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 253.077,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45416,
    "c": 0.22179,
    "h": 283.1
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#502ECA
secondary
#BFCF84
accent
#E642C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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