#502EBF#502EBF

#502EBF is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.209 H 284.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#502EBF
RGBrgb(80, 46, 191)
HSLhsl(254, 61%, 46%)
HSVhsv(254, 76%, 75%)
CMYKcmyk(58.1%, 75.9%, 0%, 25.1%)
CIE-LABlab(32.74, 51.96, -70.25)
CIE-LCHlch(32.74, 87.38, 306.49°)
OKLaboklab(44.34% 0.0532 -0.2024)
OKLCHoklch(44.34% 0.209 284.7)
XYZxyz(13.6864, 7.4202, 49.9912)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EBF #9DBF2E
analogous
#2E55BF #502EBF #992EBF
triadic
#502EBF #BF502E #2EBF50
tetradic
#502EBF #BF2E55 #9DBF2E #2EBF99
square
#502EBF #BF2E55 #9DBF2E #2EBF99
split-complementary
#502EBF #BF992E #55BF2E
monochromatic
#27165C #3B228E #502EBF #7354D6 #9B86E2

Accessibility & contrast

On white

8.45
#502EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502EBF
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EBF#FFFFFF#000000##FFFFFF
##502EBF1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C3
Deuteranopia (green-blind)
#0048BC
Tritanopia (blue-blind)
#115775
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502ebf;
/* rgb */ color: rgb(80, 46, 191);
/* oklch */ color: oklch(44.3% 0.209 284.7);
Tailwind
colors: {
  custom: {
    50: '#8e6bd4',
    500: '#502ebf',
    950: '#000000',
  },
}
SCSS
$custom: #502ebf;
$custom-light: #8e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#502ebf",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 254.069,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4434,
    "c": 0.20927,
    "h": 284.7
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#502EBF
secondary
#B9CB7E
accent
#E444BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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