#502EC2#502EC2

#502EC2 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.213 H 284.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#502EC2
RGBrgb(80, 46, 194)
HSLhsl(254, 62%, 47%)
HSVhsv(254, 76%, 76%)
CMYKcmyk(58.8%, 76.3%, 0%, 23.9%)
CIE-LABlab(33.04, 52.82, -71.53)
CIE-LCHlch(33.04, 88.92, 306.44°)
OKLaboklab(44.63% 0.0524 -0.2061)
OKLCHoklch(44.63% 0.213 284.3)
XYZxyz(14.0199, 7.5536, 51.7477)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EC2 #A0C22E
analogous
#2E56C2 #502EC2 #9A2EC2
triadic
#502EC2 #C2502E #2EC250
tetradic
#502EC2 #C22E56 #A0C22E #2EC29A
square
#502EC2 #C22E56 #A0C22E #2EC29A
split-complementary
#502EC2 #C29A2E #56C22E
monochromatic
#27175F #3C2291 #502EC2 #7456D7 #9D88E3

Accessibility & contrast

On white

8.36
#502EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#502EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EC2
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EC2#FFFFFF#000000##FFFFFF
##502EC21.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#0049BF
Tritanopia (blue-blind)
#075977
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #502ec2;
/* rgb */ color: rgb(80, 46, 194);
/* oklch */ color: oklch(44.6% 0.213 284.3);
Tailwind
colors: {
  custom: {
    50: '#8e6bd6',
    500: '#502ec2',
    950: '#000000',
  },
}
SCSS
$custom: #502ec2;
$custom-light: #8e6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#502ec2",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 253.784,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44631,
    "c": 0.2127,
    "h": 284.3
  },
  "luminance": 0.07555
}

Semantic roles & 50–950 ramp

primary
#502EC2
secondary
#BBCC7F
accent
#E543C0
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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