#5022A6#5022A6

#5022A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.192 H 291.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5022A6
RGBrgb(80, 34, 166)
HSLhsl(261, 66%, 39%)
HSVhsv(261, 80%, 65%)
CMYKcmyk(51.8%, 79.5%, 0%, 34.9%)
CIE-LABlab(28.39, 50.57, -62.51)
CIE-LCHlch(28.39, 80.40, 308.97°)
OKLaboklab(40.57% 0.069 -0.1796)
OKLCHoklch(40.57% 0.192 291)
XYZxyz(10.7613, 5.6023, 36.5833)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5022A6 #78A622
analogous
#2236A6 #5022A6 #9222A6
triadic
#5022A6 #A65022 #22A650
tetradic
#5022A6 #A62236 #78A622 #22A692
square
#5022A6 #A62236 #78A622 #22A692
split-complementary
#5022A6 #A69222 #36A622
monochromatic
#1F0D40 #381873 #5022A6 #6A30D5 #8E63DF

Accessibility & contrast

On white

9.90
#5022A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5022A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5022A6
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5022A6#FFFFFF#000000##FFFFFF
##5022A61.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#324864
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5022a6;
/* rgb */ color: rgb(80, 34, 166);
/* oklch */ color: oklch(40.6% 0.192 291.0);
Tailwind
colors: {
  custom: {
    50: '#8b63c2',
    500: '#5022a6',
    950: '#000000',
  },
}
SCSS
$custom: #5022a6;
$custom-light: #8b63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5022a6",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 260.909,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40565,
    "c": 0.19243,
    "h": 291
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#5022A6
secondary
#A1C45F
accent
#E93FAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5022A6

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

Preview Lab → · Contrast checker → · Palette generator →

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