#5226A4#5226A4

#5226A4 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.186 H 291.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5226A4
RGBrgb(82, 38, 164)
HSLhsl(261, 62%, 40%)
HSVhsv(261, 77%, 64%)
CMYKcmyk(50%, 76.8%, 0%, 35.7%)
CIE-LABlab(29.06, 48.50, -60.19)
CIE-LCHlch(29.06, 77.30, 308.86°)
OKLaboklab(41.03% 0.0696 -0.1728)
OKLCHoklch(41.03% 0.186 291.9)
XYZxyz(10.8717, 5.8600, 35.6730)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226A4 #78A426
analogous
#2639A4 #5226A4 #9126A4
triadic
#5226A4 #A45226 #26A452
tetradic
#5226A4 #A42639 #78A426 #26A491
square
#5226A4 #A42639 #78A426 #26A491
split-complementary
#5226A4 #A49126 #39A426
monochromatic
#200F41 #391A72 #5226A4 #6C37D1 #9168DC

Accessibility & contrast

On white

9.67
#5226A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5226A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226A4
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226A4#FFFFFF#000000##FFFFFF
##5226A41.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#374964
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5226a4;
/* rgb */ color: rgb(82, 38, 164);
/* oklch */ color: oklch(41.0% 0.186 291.9);
Tailwind
colors: {
  custom: {
    50: '#8b65c0',
    500: '#5226a4',
    950: '#000000',
  },
}
SCSS
$custom: #5226a4;
$custom-light: #8b65c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5226a4",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 260.952,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41028,
    "c": 0.18631,
    "h": 291.9
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#5226A4
secondary
#A1C264
accent
#E542AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5226A4

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

Preview Lab → · Contrast checker → · Palette generator →

#5226A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva