#502FAC#502FAC

#502FAC is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.186 H 287.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#502FAC
RGBrgb(80, 47, 172)
HSLhsl(256, 57%, 43%)
HSVhsv(256, 73%, 67%)
CMYKcmyk(53.5%, 72.7%, 0%, 32.5%)
CIE-LABlab(31.15, 45.97, -61.58)
CIE-LCHlch(31.15, 76.85, 306.74°)
OKLaboklab(42.68% 0.0571 -0.177)
OKLCHoklch(42.68% 0.186 287.9)
XYZxyz(11.7690, 6.7165, 39.6980)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502FAC #8BAC2F
analogous
#2F4CAC #502FAC #8E2FAC
triadic
#502FAC #AC502F #2FAC50
tetradic
#502FAC #AC2F4C #8BAC2F #2FAC8E
square
#502FAC #AC2F4C #8BAC2F #2FAC8E
split-complementary
#502FAC #AC8E2F #4CAC2F
monochromatic
#23154C #3A227C #502FAC #6D4BCE #947BDB

Accessibility & contrast

On white

8.96
#502FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502FAC
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502FAC#FFFFFF#000000##FFFFFF
##502FAC1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#2C506A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502fac;
/* rgb */ color: rgb(80, 47, 172);
/* oklch */ color: oklch(42.7% 0.186 287.9);
Tailwind
colors: {
  custom: {
    50: '#8b6bc6',
    500: '#502fac',
    950: '#000000',
  },
}
SCSS
$custom: #502fac;
$custom-light: #8b6bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#502fac",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 255.84,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42678,
    "c": 0.18599,
    "h": 287.9
  },
  "luminance": 0.06717
}

Semantic roles & 50–950 ramp

primary
#502FAC
secondary
#AEC374
accent
#E047B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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