#502BAC#502BAC

#502BAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.190 H 288.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#502BAC
RGBrgb(80, 43, 172)
HSLhsl(257, 60%, 42%)
HSVhsv(257, 75%, 67%)
CMYKcmyk(53.5%, 75%, 0%, 32.5%)
CIE-LABlab(30.43, 48.01, -62.77)
CIE-LCHlch(30.43, 79.03, 307.41°)
OKLaboklab(42.17% 0.0604 -0.1805)
OKLCHoklch(42.17% 0.19 288.5)
XYZxyz(11.6164, 6.4112, 39.6471)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BAC #87AC2B
analogous
#2B47AC #502BAC #902BAC
triadic
#502BAC #AC502B #2BAC50
tetradic
#502BAC #AC2B47 #87AC2B #2BAC90
square
#502BAC #AC2B47 #87AC2B #2BAC90
split-complementary
#502BAC #AC902B #47AC2B
monochromatic
#22134A #391F7B #502BAC #6C44D0 #9375DC

Accessibility & contrast

On white

9.20
#502BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#502BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BAC
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BAC#FFFFFF#000000##FFFFFF
##502BAC1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#2C4E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502bac;
/* rgb */ color: rgb(80, 43, 172);
/* oklch */ color: oklch(42.2% 0.190 288.5);
Tailwind
colors: {
  custom: {
    50: '#8b68c6',
    500: '#502bac',
    950: '#000000',
  },
}
SCSS
$custom: #502bac;
$custom-light: #8b68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#502bac",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 257.209,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.19031,
    "h": 288.5
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#502BAC
secondary
#ACC46F
accent
#E345B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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