#502CBE#502CBE

#502CBE is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.210 H 285.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#502CBE
RGBrgb(80, 44, 190)
HSLhsl(255, 62%, 46%)
HSVhsv(255, 77%, 75%)
CMYKcmyk(57.9%, 76.8%, 0%, 25.5%)
CIE-LABlab(32.31, 52.64, -70.37)
CIE-LCHlch(32.31, 87.88, 306.80°)
OKLaboklab(44.01% 0.0549 -0.2027)
OKLCHoklch(44.01% 0.21 285.1)
XYZxyz(13.5004, 7.2237, 49.3881)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CBE #9ABE2C
analogous
#2C51BE #502CBE #992CBE
triadic
#502CBE #BE502C #2CBE50
tetradic
#502CBE #BE2C51 #9ABE2C #2CBE99
square
#502CBE #BE2C51 #9ABE2C #2CBE99
split-complementary
#502CBE #BE992C #51BE2C
monochromatic
#26155B #3B208C #502CBE #7251D7 #9A82E2

Accessibility & contrast

On white

8.59
#502CBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#502CBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CBE
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CBE#FFFFFF#000000##FFFFFF
##502CBE1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C2
Deuteranopia (green-blind)
#0047BB
Tritanopia (blue-blind)
#135674
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502cbe;
/* rgb */ color: rgb(80, 44, 190);
/* oklch */ color: oklch(44.0% 0.210 285.1);
Tailwind
colors: {
  custom: {
    50: '#8e6ad3',
    500: '#502cbe',
    950: '#000000',
  },
}
SCSS
$custom: #502cbe;
$custom-light: #8e6ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#502cbe",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 190
  },
  "hsl": {
    "h": 254.795,
    "s": 62.393,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44006,
    "c": 0.21002,
    "h": 285.1
  },
  "luminance": 0.07225
}

Semantic roles & 50–950 ramp

primary
#502CBE
secondary
#B7CB7B
accent
#E542BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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