#502CBF#502CBF

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

Color values

HEX#502CBF
RGBrgb(80, 44, 191)
HSLhsl(255, 63%, 46%)
HSVhsv(255, 77%, 75%)
CMYKcmyk(58.1%, 77%, 0%, 25.1%)
CIE-LABlab(32.41, 52.93, -70.80)
CIE-LCHlch(32.41, 88.40, 306.78°)
OKLaboklab(44.1% 0.0546 -0.204)
OKLCHoklch(44.1% 0.211 285)
XYZxyz(13.6101, 7.2676, 49.9657)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CBF #9BBF2C
analogous
#2C51BF #502CBF #992CBF
triadic
#502CBF #BF502C #2CBF50
tetradic
#502CBF #BF2C51 #9BBF2C #2CBF99
square
#502CBF #BF2C51 #9BBF2C #2CBF99
split-complementary
#502CBF #BF992C #51BF2C
monochromatic
#26155C #3B218D #502CBF #7251D7 #9A83E2

Accessibility & contrast

On white

8.56
#502CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#502CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CBF
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CBF#FFFFFF#000000##FFFFFF
##502CBF1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C3
Deuteranopia (green-blind)
#0048BC
Tritanopia (blue-blind)
#115674
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502cbf;
/* rgb */ color: rgb(80, 44, 191);
/* oklch */ color: oklch(44.1% 0.211 285.0);
Tailwind
colors: {
  custom: {
    50: '#8e6ad4',
    500: '#502cbf',
    950: '#000000',
  },
}
SCSS
$custom: #502cbf;
$custom-light: #8e6ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#502cbf",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 191
  },
  "hsl": {
    "h": 254.694,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44104,
    "c": 0.21116,
    "h": 285
  },
  "luminance": 0.07268
}

Semantic roles & 50–950 ramp

primary
#502CBF
secondary
#B8CC7B
accent
#E642BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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