#502BE2#502BE2

#502BE2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.5% C 0.251 H 280.3°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#502BE2
RGBrgb(80, 43, 226)
HSLhsl(252, 76%, 53%)
HSVhsv(252, 81%, 89%)
CMYKcmyk(64.6%, 81%, 0%, 11.4%)
CIE-LABlab(35.84, 63.15, -85.45)
CIE-LCHlch(35.84, 106.25, 306.46°)
OKLaboklab(47.54% 0.0447 -0.2466)
OKLCHoklch(47.54% 0.251 280.3)
XYZxyz(17.8953, 8.9228, 72.7160)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BE2 #BDE22B
analogous
#2B61E2 #502BE2 #AB2BE2
triadic
#502BE2 #E2502B #2BE250
tetradic
#502BE2 #E22B61 #BDE22B #2BE2AB
square
#502BE2 #E22B61 #BDE22B #2BE2AB
split-complementary
#502BE2 #E2AB2B #61E22B
monochromatic
#281281 #3919B7 #502BE2 #7C61E9 #A997F1

Accessibility & contrast

On white

7.54
#502BE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#502BE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BE2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BE2#FFFFFF#000000##FFFFFF
##502BE21.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE7
Deuteranopia (green-blind)
#004DDF
Tritanopia (blue-blind)
#006489
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #502be2;
/* rgb */ color: rgb(80, 43, 226);
/* oklch */ color: oklch(47.5% 0.251 280.3);
Tailwind
colors: {
  custom: {
    50: '#946bed',
    500: '#502be2',
    950: '#000000',
  },
}
SCSS
$custom: #502be2;
$custom-light: #946bed;
$custom-dark: #000000;
JSON
{
  "hex": "#502be2",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 226
  },
  "hsl": {
    "h": 252.131,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47544,
    "c": 0.25067,
    "h": 280.3
  },
  "luminance": 0.08924
}

Semantic roles & 50–950 ramp

primary
#502BE2
secondary
#CCDC8D
accent
#F335CC
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #502BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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