#502AD4#502AD4

#502AD4 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.0% C 0.236 H 282.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#502AD4
RGBrgb(80, 42, 212)
HSLhsl(253, 67%, 50%)
HSVhsv(253, 80%, 83%)
CMYKcmyk(62.3%, 80.2%, 0%, 16.9%)
CIE-LABlab(34.22, 59.71, -80.07)
CIE-LCHlch(34.22, 99.88, 306.71°)
OKLaboklab(45.99% 0.0495 -0.231)
OKLCHoklch(45.99% 0.236 282.1)
XYZxyz(16.0162, 8.1137, 62.9967)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AD4 #AED42A
analogous
#2A59D4 #502AD4 #A52AD4
triadic
#502AD4 #D4502A #2AD450
tetradic
#502AD4 #D42A59 #AED42A #2AD4A5
square
#502AD4 #D42A59 #AED42A #2AD4A5
split-complementary
#502AD4 #D4A52A #59D42A
monochromatic
#29166E #3D20A1 #502AD4 #7A5CDF #A38FE9

Accessibility & contrast

On white

8.01
#502AD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#502AD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AD4
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AD4#FFFFFF#000000##FFFFFF
##502AD41.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D9
Deuteranopia (green-blind)
#004AD1
Tritanopia (blue-blind)
#005E80
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #502ad4;
/* rgb */ color: rgb(80, 42, 212);
/* oklch */ color: oklch(46.0% 0.236 282.1);
Tailwind
colors: {
  custom: {
    50: '#926ae3',
    500: '#502ad4',
    950: '#000000',
  },
}
SCSS
$custom: #502ad4;
$custom-light: #926ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#502ad4",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 212
  },
  "hsl": {
    "h": 253.412,
    "s": 66.929,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45994,
    "c": 0.23624,
    "h": 282.1
  },
  "luminance": 0.08115
}

Semantic roles & 50–950 ramp

primary
#502AD4
secondary
#C2D386
accent
#EA3EC3
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #502AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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