#502BC0#502BC0

#502BC0 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.1% C 0.213 H 284.9°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#502BC0
RGBrgb(80, 43, 192)
HSLhsl(255, 63%, 46%)
HSVhsv(255, 78%, 75%)
CMYKcmyk(58.3%, 77.6%, 0%, 24.7%)
CIE-LABlab(32.34, 53.68, -71.50)
CIE-LCHlch(32.34, 89.41, 306.90°)
OKLaboklab(44.09% 0.055 -0.206)
OKLCHoklch(44.09% 0.213 284.9)
XYZxyz(13.6837, 7.2382, 50.5350)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BC0 #9BC02B
analogous
#2B51C0 #502BC0 #9A2BC0
triadic
#502BC0 #C0502B #2BC050
tetradic
#502BC0 #C02B51 #9BC02B #2BC09A
square
#502BC0 #C02B51 #9BC02B #2BC09A
split-complementary
#502BC0 #C09A2B #51C02B
monochromatic
#26155C #3B208E #502BC0 #7250D8 #9A82E3

Accessibility & contrast

On white

8.58
#502BC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#502BC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BC0
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BC0#FFFFFF#000000##FFFFFF
##502BC01.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C4
Deuteranopia (green-blind)
#0047BD
Tritanopia (blue-blind)
#0F5675
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502bc0;
/* rgb */ color: rgb(80, 43, 192);
/* oklch */ color: oklch(44.1% 0.213 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e69d4',
    500: '#502bc0',
    950: '#000000',
  },
}
SCSS
$custom: #502bc0;
$custom-light: #8e69d4;
$custom-dark: #000000;
JSON
{
  "hex": "#502bc0",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 192
  },
  "hsl": {
    "h": 254.899,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44088,
    "c": 0.21321,
    "h": 284.9
  },
  "luminance": 0.07239
}

Semantic roles & 50–950 ramp

primary
#502BC0
secondary
#B8CC7B
accent
#E641BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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