#502BB3#502BB3

#502BB3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.198 H 287.2°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#502BB3
RGBrgb(80, 43, 179)
HSLhsl(256, 61%, 44%)
HSVhsv(256, 76%, 70%)
CMYKcmyk(55.3%, 76%, 0%, 29.8%)
CIE-LABlab(31.08, 50.00, -65.87)
CIE-LCHlch(31.08, 82.70, 307.20°)
OKLaboklab(42.83% 0.0586 -0.1896)
OKLCHoklch(42.83% 0.198 287.2)
XYZxyz(12.3064, 6.6872, 43.2814)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BB3 #8EB32B
analogous
#2B4AB3 #502BB3 #942BB3
triadic
#502BB3 #B3502B #2BB350
tetradic
#502BB3 #B32B4A #8EB32B #2BB394
square
#502BB3 #B32B4A #8EB32B #2BB394
split-complementary
#502BB3 #B3942B #4AB32B
monochromatic
#241350 #3A1F82 #502BB3 #6E48D3 #9579DF

Accessibility & contrast

On white

8.98
#502BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#502BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BB3
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BB3#FFFFFF#000000##FFFFFF
##502BB31.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#25516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502bb3;
/* rgb */ color: rgb(80, 43, 179);
/* oklch */ color: oklch(42.8% 0.198 287.2);
Tailwind
colors: {
  custom: {
    50: '#8c69cb',
    500: '#502bb3',
    950: '#000000',
  },
}
SCSS
$custom: #502bb3;
$custom-light: #8c69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#502bb3",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 256.324,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42827,
    "c": 0.19841,
    "h": 287.2
  },
  "luminance": 0.06688
}

Semantic roles & 50–950 ramp

primary
#502BB3
secondary
#B0C773
accent
#E443B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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