#502EBC#502EBC

#502EBC is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.206 H 285.2°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#502EBC
RGBrgb(80, 46, 188)
HSLhsl(254, 61%, 46%)
HSVhsv(254, 76%, 74%)
CMYKcmyk(57.4%, 75.5%, 0%, 26.3%)
CIE-LABlab(32.46, 51.10, -68.95)
CIE-LCHlch(32.46, 85.83, 306.54°)
OKLaboklab(44.05% 0.054 -0.1986)
OKLCHoklch(44.05% 0.206 285.2)
XYZxyz(13.3596, 7.2895, 48.2702)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EBC #9ABC2E
analogous
#2E53BC #502EBC #972EBC
triadic
#502EBC #BC502E #2EBC50
tetradic
#502EBC #BC2E53 #9ABC2E #2EBC97
square
#502EBC #BC2E53 #9ABC2E #2EBC97
split-complementary
#502EBC #BC972E #53BC2E
monochromatic
#26165A #3B228B #502EBC #7252D5 #9A84E1

Accessibility & contrast

On white

8.54
#502EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#502EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EBC
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EBC#FFFFFF#000000##FFFFFF
##502EBC1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#175673
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502ebc;
/* rgb */ color: rgb(80, 46, 188);
/* oklch */ color: oklch(44.1% 0.206 285.2);
Tailwind
colors: {
  custom: {
    50: '#8d6bd1',
    500: '#502ebc',
    950: '#000000',
  },
}
SCSS
$custom: #502ebc;
$custom-light: #8d6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#502ebc",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 188
  },
  "hsl": {
    "h": 254.366,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44051,
    "c": 0.20581,
    "h": 285.2
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#502EBC
secondary
#B7CA7C
accent
#E444BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #502EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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