#502EA6#502EA6

#502EA6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.180 H 289.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#502EA6
RGBrgb(80, 46, 166)
HSLhsl(257, 57%, 42%)
HSVhsv(257, 72%, 65%)
CMYKcmyk(51.8%, 72.3%, 0%, 34.9%)
CIE-LABlab(30.43, 44.76, -59.16)
CIE-LCHlch(30.43, 74.18, 307.11°)
OKLaboklab(42% 0.0593 -0.1699)
OKLCHoklch(42% 0.18 289.2)
XYZxyz(11.1662, 6.4121, 36.7183)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EA6 #84A62E
analogous
#2E48A6 #502EA6 #8C2EA6
triadic
#502EA6 #A6502E #2EA650
tetradic
#502EA6 #A62E48 #84A62E #2EA68C
square
#502EA6 #A62E48 #84A62E #2EA68C
split-complementary
#502EA6 #A68C2E #48A62E
monochromatic
#221346 #392176 #502EA6 #6C46CC #9276D9

Accessibility & contrast

On white

9.20
#502EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#502EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EA6
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EA6#FFFFFF#000000##FFFFFF
##502EA61.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#314E67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502ea6;
/* rgb */ color: rgb(80, 46, 166);
/* oklch */ color: oklch(42.0% 0.180 289.2);
Tailwind
colors: {
  custom: {
    50: '#8a6ac1',
    500: '#502ea6',
    950: '#000000',
  },
}
SCSS
$custom: #502ea6;
$custom-light: #8a6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#502ea6",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 257,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42001,
    "c": 0.17995,
    "h": 289.2
  },
  "luminance": 0.06413
}

Semantic roles & 50–950 ramp

primary
#502EA6
secondary
#AAC16F
accent
#E048B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #502EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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