#502EB8#502EB8

#502EB8 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.7% C 0.201 H 285.9°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#502EB8
RGBrgb(80, 46, 184)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 72%)
CMYKcmyk(56.5%, 75%, 0%, 27.8%)
CIE-LABlab(32.08, 49.95, -67.21)
CIE-LCHlch(32.08, 83.74, 306.62°)
OKLaboklab(43.67% 0.0551 -0.1935)
OKLCHoklch(43.67% 0.201 285.9)
XYZxyz(12.9344, 7.1194, 46.0307)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EB8 #96B82E
analogous
#2E51B8 #502EB8 #952EB8
triadic
#502EB8 #B8502E #2EB850
tetradic
#502EB8 #B82E51 #96B82E #2EB895
square
#502EB8 #B82E51 #96B82E #2EB895
split-complementary
#502EB8 #B8952E #51B82E
monochromatic
#251656 #3B2287 #502EB8 #7050D3 #9881DF

Accessibility & contrast

On white

8.66
#502EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#502EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EB8
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EB8#FFFFFF#000000##FFFFFF
##502EB81.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#1E5571
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502eb8;
/* rgb */ color: rgb(80, 46, 184);
/* oklch */ color: oklch(43.7% 0.201 285.9);
Tailwind
colors: {
  custom: {
    50: '#8d6bce',
    500: '#502eb8',
    950: '#000000',
  },
}
SCSS
$custom: #502eb8;
$custom-light: #8d6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#502eb8",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 254.783,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43669,
    "c": 0.20118,
    "h": 285.9
  },
  "luminance": 0.0712
}

Semantic roles & 50–950 ramp

primary
#502EB8
secondary
#B5C879
accent
#E345BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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