#502FC7#502FC7

#502FC7 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.217 H 283.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#502FC7
RGBrgb(80, 47, 199)
HSLhsl(253, 62%, 48%)
HSVhsv(253, 76%, 78%)
CMYKcmyk(59.8%, 76.4%, 0%, 22%)
CIE-LABlab(33.69, 53.78, -73.38)
CIE-LCHlch(33.69, 90.98, 306.23°)
OKLaboklab(45.24% 0.0505 -0.2115)
OKLCHoklch(45.24% 0.217 283.4)
XYZxyz(14.6304, 7.8610, 54.7681)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FC7 #A6C72F
analogous
#2F5AC7 #502FC7 #9C2FC7
triadic
#502FC7 #C7502F #2FC750
tetradic
#502FC7 #C72F5A #A6C72F #2FC79C
square
#502FC7 #C72F5A #A6C72F #2FC79C
split-complementary
#502FC7 #C79C2F #5AC72F
monochromatic
#281864 #3C2395 #502FC7 #765BD8 #9F8CE4

Accessibility & contrast

On white

8.16
#502FC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502FC7
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FC7#FFFFFF#000000##FFFFFF
##502FC71.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CB
Deuteranopia (green-blind)
#004AC4
Tritanopia (blue-blind)
#005B7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #502fc7;
/* rgb */ color: rgb(80, 47, 199);
/* oklch */ color: oklch(45.2% 0.217 283.4);
Tailwind
colors: {
  custom: {
    50: '#8f6cd9',
    500: '#502fc7',
    950: '#000000',
  },
}
SCSS
$custom: #502fc7;
$custom-light: #8f6cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#502fc7",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 199
  },
  "hsl": {
    "h": 253.026,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45237,
    "c": 0.21747,
    "h": 283.4
  },
  "luminance": 0.07862
}

Semantic roles & 50–950 ramp

primary
#502FC7
secondary
#BECE84
accent
#E543C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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