#502BB6#502BB6

#502BB6 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.1% C 0.202 H 286.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#502BB6
RGBrgb(80, 43, 182)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 76%, 71%)
CMYKcmyk(56%, 76.4%, 0%, 28.6%)
CIE-LABlab(31.37, 50.85, -67.19)
CIE-LCHlch(31.37, 84.26, 307.12°)
OKLaboklab(43.11% 0.0578 -0.1934)
OKLCHoklch(43.11% 0.202 286.6)
XYZxyz(12.6131, 6.8099, 44.8967)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BB6 #91B62B
analogous
#2B4CB6 #502BB6 #962BB6
triadic
#502BB6 #B6502B #2BB650
tetradic
#502BB6 #B62B4C #91B62B #2BB696
square
#502BB6 #B62B4C #91B62B #2BB696
split-complementary
#502BB6 #B6962B #4CB62B
monochromatic
#241453 #3A1F84 #502BB6 #6F4AD4 #967BE0

Accessibility & contrast

On white

8.89
#502BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#502BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BB6
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BB6#FFFFFF#000000##FFFFFF
##502BB61.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#21526F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502bb6;
/* rgb */ color: rgb(80, 43, 182);
/* oklch */ color: oklch(43.1% 0.202 286.6);
Tailwind
colors: {
  custom: {
    50: '#8c69cd',
    500: '#502bb6',
    950: '#000000',
  },
}
SCSS
$custom: #502bb6;
$custom-light: #8c69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#502bb6",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 255.971,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43115,
    "c": 0.20185,
    "h": 286.6
  },
  "luminance": 0.06811
}

Semantic roles & 50–950 ramp

primary
#502BB6
secondary
#B2C875
accent
#E543BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #502BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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