#502DC0#502DC0

#502DC0 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.211 H 284.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#502DC0
RGBrgb(80, 45, 192)
HSLhsl(254, 62%, 46%)
HSVhsv(254, 77%, 75%)
CMYKcmyk(58.3%, 76.6%, 0%, 24.7%)
CIE-LABlab(32.67, 52.73, -70.96)
CIE-LCHlch(32.67, 88.41, 306.62°)
OKLaboklab(44.32% 0.0537 -0.2044)
OKLCHoklch(44.32% 0.211 284.7)
XYZxyz(13.7582, 7.3872, 50.5598)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DC0 #9DC02D
analogous
#2D54C0 #502DC0 #9A2DC0
triadic
#502DC0 #C0502D #2DC050
tetradic
#502DC0 #C02D54 #9DC02D #2DC09A
square
#502DC0 #C02D54 #9DC02D #2DC09A
split-complementary
#502DC0 #C09A2D #54C02D
monochromatic
#27165D #3B218E #502DC0 #7353D7 #9B85E2

Accessibility & contrast

On white

8.48
#502DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#502DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DC0
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DC0#FFFFFF#000000##FFFFFF
##502DC01.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C4
Deuteranopia (green-blind)
#0048BD
Tritanopia (blue-blind)
#0E5775
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502dc0;
/* rgb */ color: rgb(80, 45, 192);
/* oklch */ color: oklch(44.3% 0.211 284.7);
Tailwind
colors: {
  custom: {
    50: '#8e6bd4',
    500: '#502dc0',
    950: '#000000',
  },
}
SCSS
$custom: #502dc0;
$custom-light: #8e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#502dc0",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 254.286,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44318,
    "c": 0.21136,
    "h": 284.7
  },
  "luminance": 0.07388
}

Semantic roles & 50–950 ramp

primary
#502DC0
secondary
#B9CC7D
accent
#E543BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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