#502BB2#502BB2

#502BB2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.197 H 287.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#502BB2
RGBrgb(80, 43, 178)
HSLhsl(256, 61%, 43%)
HSVhsv(256, 76%, 70%)
CMYKcmyk(55.1%, 75.8%, 0%, 30.2%)
CIE-LABlab(30.99, 49.72, -65.43)
CIE-LCHlch(30.99, 82.18, 307.23°)
OKLaboklab(42.73% 0.0589 -0.1883)
OKLCHoklch(42.73% 0.197 287.4)
XYZxyz(12.2056, 6.6469, 42.7507)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BB2 #8DB22B
analogous
#2B4AB2 #502BB2 #932BB2
triadic
#502BB2 #B2502B #2BB250
tetradic
#502BB2 #B22B4A #8DB22B #2BB293
square
#502BB2 #B22B4A #8DB22B #2BB293
split-complementary
#502BB2 #B2932B #4AB22B
monochromatic
#24134F #3A1F81 #502BB2 #6E48D3 #9579DF

Accessibility & contrast

On white

9.01
#502BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#502BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BB2
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BB2#FFFFFF#000000##FFFFFF
##502BB21.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502bb2;
/* rgb */ color: rgb(80, 43, 178);
/* oklch */ color: oklch(42.7% 0.197 287.4);
Tailwind
colors: {
  custom: {
    50: '#8c69ca',
    500: '#502bb2',
    950: '#000000',
  },
}
SCSS
$custom: #502bb2;
$custom-light: #8c69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#502bb2",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 256.444,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42732,
    "c": 0.19725,
    "h": 287.4
  },
  "luminance": 0.06648
}

Semantic roles & 50–950 ramp

primary
#502BB2
secondary
#AFC772
accent
#E444B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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