#502BB7#502BB7

#502BB7 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.2% C 0.203 H 286.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#502BB7
RGBrgb(80, 43, 183)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 77%, 72%)
CMYKcmyk(56.3%, 76.5%, 0%, 28.2%)
CIE-LABlab(31.47, 51.14, -67.62)
CIE-LCHlch(31.47, 84.78, 307.10°)
OKLaboklab(43.21% 0.0575 -0.1947)
OKLCHoklch(43.21% 0.203 286.5)
XYZxyz(12.7168, 6.8514, 45.4429)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BB7 #92B72B
analogous
#2B4CB7 #502BB7 #962BB7
triadic
#502BB7 #B7502B #2BB750
tetradic
#502BB7 #B72B4C #92B72B #2BB796
square
#502BB7 #B72B4C #92B72B #2BB796
split-complementary
#502BB7 #B7962B #4CB72B
monochromatic
#251454 #3A1F85 #502BB7 #6F4BD5 #977CE0

Accessibility & contrast

On white

8.86
#502BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#502BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BB7
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BB7#FFFFFF#000000##FFFFFF
##502BB71.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#205370
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502bb7;
/* rgb */ color: rgb(80, 43, 183);
/* oklch */ color: oklch(43.2% 0.203 286.5);
Tailwind
colors: {
  custom: {
    50: '#8d69ce',
    500: '#502bb7',
    950: '#000000',
  },
}
SCSS
$custom: #502bb7;
$custom-light: #8d69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#502bb7",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 255.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43211,
    "c": 0.20299,
    "h": 286.5
  },
  "luminance": 0.06852
}

Semantic roles & 50–950 ramp

primary
#502BB7
secondary
#B3C975
accent
#E543BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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