#5021AF#5021AF

#5021AF is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.3% C 0.203 H 289.2°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5021AF
RGBrgb(80, 33, 175)
HSLhsl(260, 68%, 41%)
HSVhsv(260, 81%, 69%)
CMYKcmyk(54.3%, 81.1%, 0%, 31.4%)
CIE-LABlab(29.13, 53.41, -66.71)
CIE-LCHlch(29.13, 85.45, 308.68°)
OKLaboklab(41.35% 0.0667 -0.1919)
OKLCHoklch(41.35% 0.203 289.2)
XYZxyz(11.5877, 5.8878, 41.0750)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5021AF #80AF21
analogous
#2139AF #5021AF #9721AF
triadic
#5021AF #AF5021 #21AF50
tetradic
#5021AF #AF2139 #80AF21 #21AF97
square
#5021AF #AF2139 #80AF21 #21AF97
split-complementary
#5021AF #AF9721 #39AF21
monochromatic
#210E48 #38177C #5021AF #6B34D9 #9068E3

Accessibility & contrast

On white

9.64
#5021AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5021AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5021AF
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5021AF#FFFFFF#000000##FFFFFF
##5021AF1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B3
Deuteranopia (green-blind)
#0041AC
Tritanopia (blue-blind)
#2A4B69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5021af;
/* rgb */ color: rgb(80, 33, 175);
/* oklch */ color: oklch(41.3% 0.203 289.2);
Tailwind
colors: {
  custom: {
    50: '#8c63c8',
    500: '#5021af',
    950: '#000000',
  },
}
SCSS
$custom: #5021af;
$custom-light: #8c63c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5021af",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 259.859,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41347,
    "c": 0.20316,
    "h": 289.2
  },
  "luminance": 0.05888
}

Semantic roles & 50–950 ramp

primary
#5021AF
secondary
#A7C864
accent
#EB3DB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5021AF

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

Preview Lab → · Contrast checker → · Palette generator →

#5021AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva