#502AC3#502AC3

#502AC3 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.3% C 0.217 H 284.6°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#502AC3
RGBrgb(80, 42, 195)
HSLhsl(255, 65%, 46%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(59%, 78.5%, 0%, 23.5%)
CIE-LABlab(32.48, 54.98, -73.03)
CIE-LCHlch(32.48, 91.42, 306.97°)
OKLaboklab(44.27% 0.0547 -0.2105)
OKLCHoklch(44.27% 0.217 284.6)
XYZxyz(13.9835, 7.3006, 52.2915)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AC3 #9DC32A
analogous
#2A51C3 #502AC3 #9D2AC3
triadic
#502AC3 #C3502A #2AC350
tetradic
#502AC3 #C32A51 #9DC32A #2AC39D
square
#502AC3 #C32A51 #9DC32A #2AC39D
split-complementary
#502AC3 #C39D2A #51C32A
monochromatic
#27145E #3B1F91 #502AC3 #7351D9 #9B83E4

Accessibility & contrast

On white

8.54
#502AC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#502AC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AC3
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AC3#FFFFFF#000000##FFFFFF
##502AC31.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C7
Deuteranopia (green-blind)
#0048C0
Tritanopia (blue-blind)
#055776
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502ac3;
/* rgb */ color: rgb(80, 42, 195);
/* oklch */ color: oklch(44.3% 0.217 284.6);
Tailwind
colors: {
  custom: {
    50: '#8f69d6',
    500: '#502ac3',
    950: '#000000',
  },
}
SCSS
$custom: #502ac3;
$custom-light: #8f69d6;
$custom-dark: #000000;
JSON
{
  "hex": "#502ac3",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 195
  },
  "hsl": {
    "h": 254.902,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44274,
    "c": 0.21747,
    "h": 284.6
  },
  "luminance": 0.07302
}

Semantic roles & 50–950 ramp

primary
#502AC3
secondary
#B9CD7B
accent
#E840BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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