#502FC2#502FC2

#502FC2 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.8% C 0.212 H 284.2°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#502FC2
RGBrgb(80, 47, 194)
HSLhsl(253, 61%, 47%)
HSVhsv(253, 76%, 76%)
CMYKcmyk(58.8%, 75.8%, 0%, 23.9%)
CIE-LABlab(33.21, 52.34, -71.25)
CIE-LCHlch(33.21, 88.41, 306.30°)
OKLaboklab(44.75% 0.0518 -0.2053)
OKLCHoklch(44.75% 0.212 284.2)
XYZxyz(14.0594, 7.6326, 51.7609)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FC2 #A1C22F
analogous
#2F58C2 #502FC2 #992FC2
triadic
#502FC2 #C2502F #2FC250
tetradic
#502FC2 #C22F58 #A1C22F #2FC299
square
#502FC2 #C22F58 #A1C22F #2FC299
split-complementary
#502FC2 #C2992F #58C22F
monochromatic
#27175F #3C2391 #502FC2 #7458D6 #9D89E2

Accessibility & contrast

On white

8.31
#502FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#502FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FC2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FC2#FFFFFF#000000##FFFFFF
##502FC21.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.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: #502fc2;
/* rgb */ color: rgb(80, 47, 194);
/* oklch */ color: oklch(44.8% 0.212 284.2);
Tailwind
colors: {
  custom: {
    50: '#8e6cd6',
    500: '#502fc2',
    950: '#000000',
  },
}
SCSS
$custom: #502fc2;
$custom-light: #8e6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#502fc2",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 253.469,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4475,
    "c": 0.21175,
    "h": 284.2
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

primary
#502FC2
secondary
#BBCC81
accent
#E444C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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