#502BB9#502BB9

#502BB9 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.205 H 286.1°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#502BB9
RGBrgb(80, 43, 185)
HSLhsl(256, 62%, 45%)
HSVhsv(256, 77%, 73%)
CMYKcmyk(56.8%, 76.8%, 0%, 27.5%)
CIE-LABlab(31.66, 51.70, -68.49)
CIE-LCHlch(31.66, 85.82, 307.05°)
OKLaboklab(43.4% 0.057 -0.1972)
OKLCHoklch(43.4% 0.205 286.1)
XYZxyz(12.9265, 6.9353, 46.5470)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BB9 #94B92B
analogous
#2B4DB9 #502BB9 #972BB9
triadic
#502BB9 #B9502B #2BB950
tetradic
#502BB9 #B92B4D #94B92B #2BB997
square
#502BB9 #B92B4D #94B92B #2BB997
split-complementary
#502BB9 #B9972B #4DB92B
monochromatic
#251456 #3B1F87 #502BB9 #704CD5 #977EE1

Accessibility & contrast

On white

8.80
#502BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#502BB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BB9
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BB9#FFFFFF#000000##FFFFFF
##502BB91.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#1D5471
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502bb9;
/* rgb */ color: rgb(80, 43, 185);
/* oklch */ color: oklch(43.4% 0.205 286.1);
Tailwind
colors: {
  custom: {
    50: '#8d69cf',
    500: '#502bb9',
    950: '#000000',
  },
}
SCSS
$custom: #502bb9;
$custom-light: #8d69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#502bb9",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 255.634,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43404,
    "c": 0.20528,
    "h": 286.1
  },
  "luminance": 0.06936
}

Semantic roles & 50–950 ramp

primary
#502BB9
secondary
#B4C976
accent
#E542BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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