#5122AE#5122AE

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

Color values

HEX#5122AE
RGBrgb(81, 34, 174)
HSLhsl(260, 67%, 41%)
HSVhsv(260, 80%, 68%)
CMYKcmyk(53.4%, 80.5%, 0%, 31.8%)
CIE-LABlab(29.28, 52.85, -65.85)
CIE-LCHlch(29.28, 84.43, 308.75°)
OKLaboklab(41.45% 0.068 -0.1894)
OKLCHoklch(41.45% 0.201 289.7)
XYZxyz(11.6031, 5.9488, 40.5730)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5122AE #7FAE22
analogous
#2239AE #5122AE #9722AE
triadic
#5122AE #AE5122 #22AE51
tetradic
#5122AE #AE2239 #7FAE22 #22AE97
square
#5122AE #AE2239 #7FAE22 #22AE97
split-complementary
#5122AE #AE9722 #39AE22
monochromatic
#210E48 #39187B #5122AE #6C36D8 #9169E2

Accessibility & contrast

On white

9.59
#5122AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5122AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5122AE
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5122AE#FFFFFF#000000##FFFFFF
##5122AE1.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)
#0048B2
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#2D4B69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5122ae;
/* rgb */ color: rgb(81, 34, 174);
/* oklch */ color: oklch(41.4% 0.201 289.7);
Tailwind
colors: {
  custom: {
    50: '#8c64c7',
    500: '#5122ae',
    950: '#000000',
  },
}
SCSS
$custom: #5122ae;
$custom-light: #8c64c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5122ae",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 174
  },
  "hsl": {
    "h": 260.143,
    "s": 67.308,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4145,
    "c": 0.20118,
    "h": 289.7
  },
  "luminance": 0.05949
}

Semantic roles & 50–950 ramp

primary
#5122AE
secondary
#A6C764
accent
#EA3EB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5122AE

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

Preview Lab → · Contrast checker → · Palette generator →

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