#502EA5#502EA5

#502EA5 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.179 H 289.4°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#502EA5
RGBrgb(80, 46, 165)
HSLhsl(257, 56%, 41%)
HSVhsv(257, 72%, 65%)
CMYKcmyk(51.5%, 72.1%, 0%, 35.3%)
CIE-LABlab(30.34, 44.47, -58.70)
CIE-LCHlch(30.34, 73.64, 307.14°)
OKLaboklab(41.91% 0.0595 -0.1686)
OKLCHoklch(41.91% 0.179 289.4)
XYZxyz(11.0748, 6.3756, 36.2371)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EA5 #83A52E
analogous
#2E48A5 #502EA5 #8C2EA5
triadic
#502EA5 #A5502E #2EA550
tetradic
#502EA5 #A52E48 #83A52E #2EA58C
square
#502EA5 #A52E48 #83A52E #2EA58C
split-complementary
#502EA5 #A58C2E #48A52E
monochromatic
#221345 #392175 #502EA5 #6B45CB #9175D8

Accessibility & contrast

On white

9.23
#502EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502EA5
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EA5#FFFFFF#000000##FFFFFF
##502EA51.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#324D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ea5;
/* rgb */ color: rgb(80, 46, 165);
/* oklch */ color: oklch(41.9% 0.179 289.4);
Tailwind
colors: {
  custom: {
    50: '#8a6ac1',
    500: '#502ea5',
    950: '#000000',
  },
}
SCSS
$custom: #502ea5;
$custom-light: #8a6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#502ea5",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 257.143,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41911,
    "c": 0.17875,
    "h": 289.4
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#502EA5
secondary
#A9C06F
accent
#E048B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #502EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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