#502EB7#502EB7

#502EB7 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.6% C 0.200 H 286.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#502EB7
RGBrgb(80, 46, 183)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 72%)
CMYKcmyk(56.3%, 74.9%, 0%, 28.2%)
CIE-LABlab(31.98, 49.66, -66.77)
CIE-LCHlch(31.98, 83.22, 306.64°)
OKLaboklab(43.57% 0.0553 -0.1922)
OKLCHoklch(43.57% 0.2 286.1)
XYZxyz(12.8299, 7.0776, 45.4806)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EB7 #95B72E
analogous
#2E50B7 #502EB7 #952EB7
triadic
#502EB7 #B7502E #2EB750
tetradic
#502EB7 #B72E50 #95B72E #2EB795
square
#502EB7 #B72E50 #95B72E #2EB795
split-complementary
#502EB7 #B7952E #50B72E
monochromatic
#251555 #3B2286 #502EB7 #704FD3 #9880DF

Accessibility & contrast

On white

8.69
#502EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502EB7
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EB7#FFFFFF#000000##FFFFFF
##502EB71.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#1F5470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502eb7;
/* rgb */ color: rgb(80, 46, 183);
/* oklch */ color: oklch(43.6% 0.200 286.1);
Tailwind
colors: {
  custom: {
    50: '#8c6bce',
    500: '#502eb7',
    950: '#000000',
  },
}
SCSS
$custom: #502eb7;
$custom-light: #8c6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#502eb7",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 254.891,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43574,
    "c": 0.20002,
    "h": 286.1
  },
  "luminance": 0.07078
}

Semantic roles & 50–950 ramp

primary
#502EB7
secondary
#B4C879
accent
#E345BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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