#502EB9#502EB9

#502EB9 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.8% C 0.202 H 285.7°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#502EB9
RGBrgb(80, 46, 185)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(56.8%, 75.1%, 0%, 27.5%)
CIE-LABlab(32.17, 50.24, -67.65)
CIE-LCHlch(32.17, 84.26, 306.60°)
OKLaboklab(43.76% 0.0548 -0.1948)
OKLCHoklch(43.76% 0.202 285.7)
XYZxyz(13.0396, 7.1615, 46.5847)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EB9 #97B92E
analogous
#2E52B9 #502EB9 #952EB9
triadic
#502EB9 #B9502E #2EB950
tetradic
#502EB9 #B92E52 #97B92E #2EB995
square
#502EB9 #B92E52 #97B92E #2EB995
split-complementary
#502EB9 #B9952E #52B92E
monochromatic
#261657 #3B2288 #502EB9 #7151D4 #9982E0

Accessibility & contrast

On white

8.63
#502EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#502EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EB9
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EB9#FFFFFF#000000##FFFFFF
##502EB91.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#1C5572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502eb9;
/* rgb */ color: rgb(80, 46, 185);
/* oklch */ color: oklch(43.8% 0.202 285.7);
Tailwind
colors: {
  custom: {
    50: '#8d6bcf',
    500: '#502eb9',
    950: '#000000',
  },
}
SCSS
$custom: #502eb9;
$custom-light: #8d6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#502eb9",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 254.676,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43764,
    "c": 0.20234,
    "h": 285.7
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

primary
#502EB9
secondary
#B6C97A
accent
#E344BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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