#502BAF#502BAF

#502BAF is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.194 H 287.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#502BAF
RGBrgb(80, 43, 175)
HSLhsl(257, 61%, 43%)
HSVhsv(257, 75%, 69%)
CMYKcmyk(54.3%, 75.4%, 0%, 31.4%)
CIE-LABlab(30.71, 48.87, -64.11)
CIE-LCHlch(30.71, 80.61, 307.32°)
OKLaboklab(42.45% 0.0596 -0.1844)
OKLCHoklch(42.45% 0.194 287.9)
XYZxyz(11.9077, 6.5278, 41.1817)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BAF #8AAF2B
analogous
#2B48AF #502BAF #922BAF
triadic
#502BAF #AF502B #2BAF50
tetradic
#502BAF #AF2B48 #8AAF2B #2BAF92
square
#502BAF #AF2B48 #8AAF2B #2BAF92
split-complementary
#502BAF #AF922B #48AF2B
monochromatic
#23134D #3A1F7E #502BAF #6D46D1 #9477DE

Accessibility & contrast

On white

9.11
#502BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#502BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BAF
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BAF#FFFFFF#000000##FFFFFF
##502BAF1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#29506B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502baf;
/* rgb */ color: rgb(80, 43, 175);
/* oklch */ color: oklch(42.4% 0.194 287.9);
Tailwind
colors: {
  custom: {
    50: '#8b69c8',
    500: '#502baf',
    950: '#000000',
  },
}
SCSS
$custom: #502baf;
$custom-light: #8b69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#502baf",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 256.818,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42448,
    "c": 0.1938,
    "h": 287.9
  },
  "luminance": 0.06528
}

Semantic roles & 50–950 ramp

primary
#502BAF
secondary
#AEC570
accent
#E444B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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