#5022AF#5022AF

#5022AF is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.4% C 0.202 H 289.1°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5022AF
RGBrgb(80, 34, 175)
HSLhsl(260, 67%, 41%)
HSVhsv(260, 81%, 69%)
CMYKcmyk(54.3%, 80.6%, 0%, 31.4%)
CIE-LABlab(29.27, 52.99, -66.47)
CIE-LCHlch(29.27, 85.01, 308.56°)
OKLaboklab(41.45% 0.0661 -0.1912)
OKLCHoklch(41.45% 0.202 289.1)
XYZxyz(11.6159, 5.9441, 41.0844)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5022AF #81AF22
analogous
#223BAF #5022AF #9622AF
triadic
#5022AF #AF5022 #22AF50
tetradic
#5022AF #AF223B #81AF22 #22AF96
square
#5022AF #AF223B #81AF22 #22AF96
split-complementary
#5022AF #AF9622 #3BAF22
monochromatic
#210E49 #39187C #5022AF #6B36D8 #9169E2

Accessibility & contrast

On white

9.59
#5022AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5022AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5022AF
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5022AF#FFFFFF#000000##FFFFFF
##5022AF1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5022af;
/* rgb */ color: rgb(80, 34, 175);
/* oklch */ color: oklch(41.4% 0.202 289.1);
Tailwind
colors: {
  custom: {
    50: '#8c64c8',
    500: '#5022af',
    950: '#000000',
  },
}
SCSS
$custom: #5022af;
$custom-light: #8c64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5022af",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 259.574,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41446,
    "c": 0.20231,
    "h": 289.1
  },
  "luminance": 0.05945
}

Semantic roles & 50–950 ramp

primary
#5022AF
secondary
#A8C865
accent
#EA3DB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5022AF

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

Preview Lab → · Contrast checker → · Palette generator →

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