#5122A9#5122A9

#5122A9 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.196 H 290.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5122A9
RGBrgb(81, 34, 169)
HSLhsl(261, 67%, 40%)
HSVhsv(261, 80%, 66%)
CMYKcmyk(52.1%, 79.9%, 0%, 33.7%)
CIE-LABlab(28.79, 51.51, -63.65)
CIE-LCHlch(28.79, 81.88, 308.98°)
OKLaboklab(40.96% 0.0696 -0.1829)
OKLCHoklch(40.96% 0.196 290.8)
XYZxyz(11.1247, 5.7575, 38.0536)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5122A9 #7AA922
analogous
#2237A9 #5122A9 #9522A9
triadic
#5122A9 #A95122 #22A951
tetradic
#5122A9 #A92237 #7AA922 #22A995
square
#5122A9 #A92237 #7AA922 #22A995
split-complementary
#5122A9 #A99522 #37A922
monochromatic
#200D43 #391876 #5122A9 #6B32D6 #9065E0

Accessibility & contrast

On white

9.76
#5122A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5122A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5122A9
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5122A9#FFFFFF#000000##FFFFFF
##5122A91.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#314966
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5122a9;
/* rgb */ color: rgb(81, 34, 169);
/* oklch */ color: oklch(41.0% 0.196 290.8);
Tailwind
colors: {
  custom: {
    50: '#8c64c4',
    500: '#5122a9',
    950: '#000000',
  },
}
SCSS
$custom: #5122a9;
$custom-light: #8c64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5122a9",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 260.889,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40962,
    "c": 0.19573,
    "h": 290.8
  },
  "luminance": 0.05758
}

Semantic roles & 50–950 ramp

primary
#5122A9
secondary
#A3C561
accent
#E93EAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5122A9

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

Preview Lab → · Contrast checker → · Palette generator →

#5122A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva