#502FC4#502FC4

#502FC4 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.214 H 283.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#502FC4
RGBrgb(80, 47, 196)
HSLhsl(253, 61%, 48%)
HSVhsv(253, 76%, 77%)
CMYKcmyk(59.2%, 76%, 0%, 23.1%)
CIE-LABlab(33.40, 52.91, -72.11)
CIE-LCHlch(33.40, 89.44, 306.27°)
OKLaboklab(44.94% 0.0512 -0.2078)
OKLCHoklch(44.94% 0.214 283.9)
XYZxyz(14.2855, 7.7231, 52.9518)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FC4 #A3C42F
analogous
#2F58C4 #502FC4 #9B2FC4
triadic
#502FC4 #C4502F #2FC450
tetradic
#502FC4 #C42F58 #A3C42F #2FC49B
square
#502FC4 #C42F58 #A3C42F #2FC49B
split-complementary
#502FC4 #C49B2F #58C42F
monochromatic
#281761 #3C2393 #502FC4 #7559D7 #9E8AE3

Accessibility & contrast

On white

8.25
#502FC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#502FC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FC4
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FC4#FFFFFF#000000##FFFFFF
##502FC41.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C8
Deuteranopia (green-blind)
#004AC1
Tritanopia (blue-blind)
#005A78
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #502fc4;
/* rgb */ color: rgb(80, 47, 196);
/* oklch */ color: oklch(44.9% 0.214 283.9);
Tailwind
colors: {
  custom: {
    50: '#8f6cd7',
    500: '#502fc4',
    950: '#000000',
  },
}
SCSS
$custom: #502fc4;
$custom-light: #8f6cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#502fc4",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 253.289,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44944,
    "c": 0.21404,
    "h": 283.9
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#502FC4
secondary
#BCCD82
accent
#E443C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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