#5226AD#5226AD

#5226AD is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.196 H 289.9°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5226AD
RGBrgb(82, 38, 173)
HSLhsl(260, 64%, 41%)
HSVhsv(260, 78%, 68%)
CMYKcmyk(52.6%, 78%, 0%, 32.2%)
CIE-LABlab(29.90, 50.96, -64.22)
CIE-LCHlch(29.90, 81.98, 308.43°)
OKLaboklab(41.88% 0.067 -0.1846)
OKLCHoklch(41.88% 0.196 289.9)
XYZxyz(11.7134, 6.1967, 40.1059)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226AD #81AD26
analogous
#263DAD #5226AD #9626AD
triadic
#5226AD #AD5226 #26AD52
tetradic
#5226AD #AD263D #81AD26 #26AD96
square
#5226AD #AD263D #81AD26 #26AD96
split-complementary
#5226AD #AD9626 #3DAD26
monochromatic
#221049 #3A1B7B #5226AD #6E3CD4 #936EDF

Accessibility & contrast

On white

9.38
#5226AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5226AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226AD
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226AD#FFFFFF#000000##FFFFFF
##5226AD1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B1
Deuteranopia (green-blind)
#0043AB
Tritanopia (blue-blind)
#304C69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5226ad;
/* rgb */ color: rgb(82, 38, 173);
/* oklch */ color: oklch(41.9% 0.196 289.9);
Tailwind
colors: {
  custom: {
    50: '#8d66c7',
    500: '#5226ad',
    950: '#000000',
  },
}
SCSS
$custom: #5226ad;
$custom-light: #8d66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5226ad",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 259.556,
    "s": 63.981,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41878,
    "c": 0.1964,
    "h": 289.9
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#5226AD
secondary
#A8C669
accent
#E741B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5226AD

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

Preview Lab → · Contrast checker → · Palette generator →

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