#5226A6#5226A6

#5226A6 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.189 H 291.5°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5226A6
RGBrgb(82, 38, 166)
HSLhsl(261, 63%, 40%)
HSVhsv(261, 77%, 65%)
CMYKcmyk(50.6%, 77.1%, 0%, 34.9%)
CIE-LABlab(29.24, 49.05, -61.10)
CIE-LCHlch(29.24, 78.35, 308.76°)
OKLaboklab(41.22% 0.069 -0.1755)
OKLCHoklch(41.22% 0.189 291.5)
XYZxyz(11.0538, 5.9328, 36.6317)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226A6 #7AA626
analogous
#263AA6 #5226A6 #9226A6
triadic
#5226A6 #A65226 #26A652
tetradic
#5226A6 #A6263A #7AA626 #26A692
square
#5226A6 #A6263A #7AA626 #26A692
split-complementary
#5226A6 #A69226 #3AA626
monochromatic
#210F42 #391B74 #5226A6 #6D38D1 #916ADD

Accessibility & contrast

On white

9.60
#5226A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5226A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226A6
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226A6#FFFFFF#000000##FFFFFF
##5226A61.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#364A65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5226a6;
/* rgb */ color: rgb(82, 38, 166);
/* oklch */ color: oklch(41.2% 0.189 291.5);
Tailwind
colors: {
  custom: {
    50: '#8b66c2',
    500: '#5226a6',
    950: '#000000',
  },
}
SCSS
$custom: #5226a6;
$custom-light: #8b66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5226a6",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 260.625,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.41215,
    "c": 0.18856,
    "h": 291.5
  },
  "luminance": 0.05933
}

Semantic roles & 50–950 ramp

primary
#5226A6
secondary
#A3C365
accent
#E642AD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5226A6

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

Preview Lab → · Contrast checker → · Palette generator →

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