#502EBD#502EBD

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

Color values

HEX#502EBD
RGBrgb(80, 46, 189)
HSLhsl(254, 61%, 46%)
HSVhsv(254, 76%, 74%)
CMYKcmyk(57.7%, 75.7%, 0%, 25.9%)
CIE-LABlab(32.55, 51.39, -69.39)
CIE-LCHlch(32.55, 86.34, 306.52°)
OKLaboklab(44.15% 0.0538 -0.1999)
OKLCHoklch(44.15% 0.207 285.1)
XYZxyz(13.4678, 7.3328, 48.8399)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EBD #9BBD2E
analogous
#2E53BD #502EBD #972EBD
triadic
#502EBD #BD502E #2EBD50
tetradic
#502EBD #BD2E53 #9BBD2E #2EBD97
square
#502EBD #BD2E53 #9BBD2E #2EBD97
split-complementary
#502EBD #BD972E #53BD2E
monochromatic
#26165B #3B228C #502EBD #7253D5 #9A84E1

Accessibility & contrast

On white

8.51
#502EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#502EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EBD
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EBD#FFFFFF#000000##FFFFFF
##502EBD1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#155774
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502ebd;
/* rgb */ color: rgb(80, 46, 189);
/* oklch */ color: oklch(44.1% 0.207 285.1);
Tailwind
colors: {
  custom: {
    50: '#8d6bd2',
    500: '#502ebd',
    950: '#000000',
  },
}
SCSS
$custom: #502ebd;
$custom-light: #8d6bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#502ebd",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 254.266,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44147,
    "c": 0.20697,
    "h": 285.1
  },
  "luminance": 0.07334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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