#502EB6#502EB6

#502EB6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.199 H 286.2°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#502EB6
RGBrgb(80, 46, 182)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 71%)
CMYKcmyk(56%, 74.7%, 0%, 28.6%)
CIE-LABlab(31.89, 49.38, -66.34)
CIE-LCHlch(31.89, 82.69, 306.66°)
OKLaboklab(43.48% 0.0556 -0.1909)
OKLCHoklch(43.48% 0.199 286.2)
XYZxyz(12.7262, 7.0361, 44.9344)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EB6 #94B62E
analogous
#2E50B6 #502EB6 #942EB6
triadic
#502EB6 #B6502E #2EB650
tetradic
#502EB6 #B62E50 #94B62E #2EB694
square
#502EB6 #B62E50 #94B62E #2EB694
split-complementary
#502EB6 #B6942E #50B62E
monochromatic
#251554 #3B2285 #502EB6 #704FD2 #9780DF

Accessibility & contrast

On white

8.72
#502EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#502EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EB6
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EB6#FFFFFF#000000##FFFFFF
##502EB61.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#215470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502eb6;
/* rgb */ color: rgb(80, 46, 182);
/* oklch */ color: oklch(43.5% 0.199 286.2);
Tailwind
colors: {
  custom: {
    50: '#8c6bcd',
    500: '#502eb6',
    950: '#000000',
  },
}
SCSS
$custom: #502eb6;
$custom-light: #8c6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#502eb6",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 255,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43479,
    "c": 0.19885,
    "h": 286.2
  },
  "luminance": 0.07037
}

Semantic roles & 50–950 ramp

primary
#502EB6
secondary
#B4C878
accent
#E345BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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