#502EBE#502EBE

#502EBE is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.208 H 284.9°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#502EBE
RGBrgb(80, 46, 190)
HSLhsl(254, 61%, 46%)
HSVhsv(254, 76%, 75%)
CMYKcmyk(57.9%, 75.8%, 0%, 25.5%)
CIE-LABlab(32.65, 51.68, -69.82)
CIE-LCHlch(32.65, 86.86, 306.51°)
OKLaboklab(44.24% 0.0535 -0.2011)
OKLCHoklch(44.24% 0.208 284.9)
XYZxyz(13.5767, 7.3763, 49.4136)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EBE #9CBE2E
analogous
#2E54BE #502EBE #982EBE
triadic
#502EBE #BE502E #2EBE50
tetradic
#502EBE #BE2E54 #9CBE2E #2EBE98
square
#502EBE #BE2E54 #9CBE2E #2EBE98
split-complementary
#502EBE #BE982E #54BE2E
monochromatic
#27165B #3B228D #502EBE #7254D6 #9B85E1

Accessibility & contrast

On white

8.48
#502EBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#502EBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502EBE
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EBE#FFFFFF#000000##FFFFFF
##502EBE1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C2
Deuteranopia (green-blind)
#0048BB
Tritanopia (blue-blind)
#135774
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502ebe;
/* rgb */ color: rgb(80, 46, 190);
/* oklch */ color: oklch(44.2% 0.208 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e6bd3',
    500: '#502ebe',
    950: '#000000',
  },
}
SCSS
$custom: #502ebe;
$custom-light: #8e6bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#502ebe",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 190
  },
  "hsl": {
    "h": 254.167,
    "s": 61.017,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44243,
    "c": 0.20812,
    "h": 284.9
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

primary
#502EBE
secondary
#B8CB7D
accent
#E444BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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