#502FBF#502FBF

#502FBF is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.208 H 284.6°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#502FBF
RGBrgb(80, 47, 191)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 75%, 75%)
CMYKcmyk(58.1%, 75.4%, 0%, 25.1%)
CIE-LABlab(32.92, 51.47, -69.96)
CIE-LCHlch(32.92, 86.86, 306.34°)
OKLaboklab(44.46% 0.0526 -0.2016)
OKLCHoklch(44.46% 0.208 284.6)
XYZxyz(13.7259, 7.4992, 50.0043)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FBF #9EBF2F
analogous
#2F56BF #502FBF #982FBF
triadic
#502FBF #BF502F #2FBF50
tetradic
#502FBF #BF2F56 #9EBF2F #2FBF98
square
#502FBF #BF2F56 #9EBF2F #2FBF98
split-complementary
#502FBF #BF982F #56BF2F
monochromatic
#27175D #3B238E #502FBF #7356D5 #9C87E1

Accessibility & contrast

On white

8.40
#502FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#502FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FBF
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FBF#FFFFFF#000000##FFFFFF
##502FBF1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502fbf;
/* rgb */ color: rgb(80, 47, 191);
/* oklch */ color: oklch(44.5% 0.208 284.6);
Tailwind
colors: {
  custom: {
    50: '#8e6cd4',
    500: '#502fbf',
    950: '#000000',
  },
}
SCSS
$custom: #502fbf;
$custom-light: #8e6cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#502fbf",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 253.75,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44461,
    "c": 0.2083,
    "h": 284.6
  },
  "luminance": 0.075
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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