#502AAF#502AAF

#502AAF is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.195 H 288.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#502AAF
RGBrgb(80, 42, 175)
HSLhsl(257, 61%, 43%)
HSVhsv(257, 76%, 69%)
CMYKcmyk(54.3%, 76%, 0%, 31.4%)
CIE-LABlab(30.53, 49.36, -64.39)
CIE-LCHlch(30.53, 81.13, 307.47°)
OKLaboklab(42.33% 0.0604 -0.1852)
OKLCHoklch(42.33% 0.195 288.1)
XYZxyz(11.8718, 6.4559, 41.1697)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AAF #89AF2A
analogous
#2A46AF #502AAF #932AAF
triadic
#502AAF #AF502A #2AAF50
tetradic
#502AAF #AF2A46 #89AF2A #2AAF93
square
#502AAF #AF2A46 #89AF2A #2AAF93
split-complementary
#502AAF #AF932A #46AF2A
monochromatic
#23124C #391E7E #502AAF #6D44D2 #9375DE

Accessibility & contrast

On white

9.16
#502AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#502AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AAF
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AAF#FFFFFF#000000##FFFFFF
##502AAF1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#294F6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502aaf;
/* rgb */ color: rgb(80, 42, 175);
/* oklch */ color: oklch(42.3% 0.195 288.1);
Tailwind
colors: {
  custom: {
    50: '#8b68c8',
    500: '#502aaf',
    950: '#000000',
  },
}
SCSS
$custom: #502aaf;
$custom-light: #8b68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#502aaf",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 257.143,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42327,
    "c": 0.19481,
    "h": 288.1
  },
  "luminance": 0.06457
}

Semantic roles & 50–950 ramp

primary
#502AAF
secondary
#ADC66F
accent
#E443B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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