#502BC2#502BC2

#502BC2 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.3% C 0.215 H 284.6°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#502BC2
RGBrgb(80, 43, 194)
HSLhsl(255, 64%, 46%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(58.8%, 77.8%, 0%, 23.9%)
CIE-LABlab(32.54, 54.24, -72.35)
CIE-LCHlch(32.54, 90.42, 306.86°)
OKLaboklab(44.29% 0.0544 -0.2085)
OKLCHoklch(44.29% 0.215 284.6)
XYZxyz(13.9068, 7.3274, 51.7100)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BC2 #9DC22B
analogous
#2B52C2 #502BC2 #9C2BC2
triadic
#502BC2 #C2502B #2BC250
tetradic
#502BC2 #C22B52 #9DC22B #2BC29C
square
#502BC2 #C22B52 #9DC22B #2BC29C
split-complementary
#502BC2 #C29C2B #52C22B
monochromatic
#27155E #3B2090 #502BC2 #7352D9 #9B84E4

Accessibility & contrast

On white

8.52
#502BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#502BC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BC2
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BC2#FFFFFF#000000##FFFFFF
##502BC21.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C6
Deuteranopia (green-blind)
#0048BF
Tritanopia (blue-blind)
#085776
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502bc2;
/* rgb */ color: rgb(80, 43, 194);
/* oklch */ color: oklch(44.3% 0.215 284.6);
Tailwind
colors: {
  custom: {
    50: '#8e6ad6',
    500: '#502bc2',
    950: '#000000',
  },
}
SCSS
$custom: #502bc2;
$custom-light: #8e6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#502bc2",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 254.702,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44285,
    "c": 0.21546,
    "h": 284.6
  },
  "luminance": 0.07328
}

Semantic roles & 50–950 ramp

primary
#502BC2
secondary
#B9CD7C
accent
#E741BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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