#5022B3#5022B3

#5022B3 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.8% C 0.207 H 288.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5022B3
RGBrgb(80, 34, 179)
HSLhsl(259, 68%, 42%)
HSVhsv(259, 81%, 70%)
CMYKcmyk(55.3%, 81%, 0%, 29.8%)
CIE-LABlab(29.67, 54.07, -68.20)
CIE-LCHlch(29.67, 87.03, 308.41°)
OKLaboklab(41.84% 0.0647 -0.1963)
OKLCHoklch(41.84% 0.207 288.3)
XYZxyz(12.0146, 6.1036, 43.1841)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5022B3 #85B322
analogous
#223DB3 #5022B3 #9822B3
triadic
#5022B3 #B35022 #22B350
tetradic
#5022B3 #B3223D #85B322 #22B398
square
#5022B3 #B3223D #85B322 #22B398
split-complementary
#5022B3 #B39822 #3DB322
monochromatic
#220E4C #391880 #5022B3 #6C39D9 #926CE3

Accessibility & contrast

On white

9.46
#5022B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5022B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5022B3
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5022B3#FFFFFF#000000##FFFFFF
##5022B31.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#254D6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5022b3;
/* rgb */ color: rgb(80, 34, 179);
/* oklch */ color: oklch(41.8% 0.207 288.3);
Tailwind
colors: {
  custom: {
    50: '#8d64cb',
    500: '#5022b3',
    950: '#000000',
  },
}
SCSS
$custom: #5022b3;
$custom-light: #8d64cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5022b3",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 259.034,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41844,
    "c": 0.20667,
    "h": 288.3
  },
  "luminance": 0.06104
}

Semantic roles & 50–950 ramp

primary
#5022B3
secondary
#AAC968
accent
#EB3DB4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5022B3

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

Preview Lab → · Contrast checker → · Palette generator →

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