#502FC3#502FC3

#502FC3 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.213 H 284.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#502FC3
RGBrgb(80, 47, 195)
HSLhsl(253, 61%, 47%)
HSVhsv(253, 76%, 76%)
CMYKcmyk(59%, 75.9%, 0%, 23.5%)
CIE-LABlab(33.30, 52.63, -71.68)
CIE-LCHlch(33.30, 88.92, 306.28°)
OKLaboklab(44.85% 0.0515 -0.2066)
OKLCHoklch(44.85% 0.213 284)
XYZxyz(14.1721, 7.6777, 52.3543)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FC3 #A2C32F
analogous
#2F58C3 #502FC3 #9A2FC3
triadic
#502FC3 #C3502F #2FC350
tetradic
#502FC3 #C32F58 #A2C32F #2FC39A
square
#502FC3 #C32F58 #A2C32F #2FC39A
split-complementary
#502FC3 #C39A2F #58C32F
monochromatic
#281760 #3C2392 #502FC3 #7558D7 #9E8AE3

Accessibility & contrast

On white

8.28
#502FC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502FC3
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FC3#FFFFFF#000000##FFFFFF
##502FC31.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#035977
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #502fc3;
/* rgb */ color: rgb(80, 47, 195);
/* oklch */ color: oklch(44.8% 0.213 284.0);
Tailwind
colors: {
  custom: {
    50: '#8e6cd6',
    500: '#502fc3',
    950: '#000000',
  },
}
SCSS
$custom: #502fc3;
$custom-light: #8e6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#502fc3",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 195
  },
  "hsl": {
    "h": 253.378,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44847,
    "c": 0.2129,
    "h": 284
  },
  "luminance": 0.07679
}

Semantic roles & 50–950 ramp

primary
#502FC3
secondary
#BCCD81
accent
#E444C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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