#502FB7#502FB7

#502FB7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.199 H 285.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#502FB7
RGBrgb(80, 47, 183)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 74%, 72%)
CMYKcmyk(56.3%, 74.3%, 0%, 28.2%)
CIE-LABlab(32.16, 49.16, -66.48)
CIE-LCHlch(32.16, 82.68, 306.48°)
OKLaboklab(43.7% 0.0546 -0.1914)
OKLCHoklch(43.7% 0.199 285.9)
XYZxyz(12.8694, 7.1567, 45.4938)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FB7 #96B72F
analogous
#2F52B7 #502FB7 #942FB7
triadic
#502FB7 #B7502F #2FB750
tetradic
#502FB7 #B72F52 #96B72F #2FB794
square
#502FB7 #B72F52 #96B72F #2FB794
split-complementary
#502FB7 #B7942F #52B72F
monochromatic
#251656 #3B2286 #502FB7 #7051D2 #9882DF

Accessibility & contrast

On white

8.64
#502FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#502FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502FB7
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FB7#FFFFFF#000000##FFFFFF
##502FB71.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#1F5571
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502fb7;
/* rgb */ color: rgb(80, 47, 183);
/* oklch */ color: oklch(43.7% 0.199 285.9);
Tailwind
colors: {
  custom: {
    50: '#8c6bce',
    500: '#502fb7',
    950: '#000000',
  },
}
SCSS
$custom: #502fb7;
$custom-light: #8c6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#502fb7",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 254.559,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43699,
    "c": 0.19899,
    "h": 285.9
  },
  "luminance": 0.07157
}

Semantic roles & 50–950 ramp

primary
#502FB7
secondary
#B5C87A
accent
#E245BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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