#5226A9#5226A9

#5226A9 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.192 H 290.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5226A9
RGBrgb(82, 38, 169)
HSLhsl(260, 63%, 41%)
HSVhsv(260, 78%, 66%)
CMYKcmyk(51.5%, 77.5%, 0%, 33.7%)
CIE-LABlab(29.52, 49.87, -62.44)
CIE-LCHlch(29.52, 79.91, 308.61°)
OKLaboklab(41.5% 0.0682 -0.1794)
OKLCHoklch(41.5% 0.192 290.8)
XYZxyz(11.3322, 6.0442, 38.0980)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226A9 #7DA926
analogous
#263BA9 #5226A9 #9326A9
triadic
#5226A9 #A95226 #26A952
tetradic
#5226A9 #A9263B #7DA926 #26A993
square
#5226A9 #A9263B #7DA926 #26A993
split-complementary
#5226A9 #A99326 #3BA926
monochromatic
#221045 #3A1B77 #5226A9 #6D3AD3 #926CDE

Accessibility & contrast

On white

9.51
#5226A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5226A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226A9
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226A9#FFFFFF#000000##FFFFFF
##5226A91.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#334B67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5226a9;
/* rgb */ color: rgb(82, 38, 169);
/* oklch */ color: oklch(41.5% 0.192 290.8);
Tailwind
colors: {
  custom: {
    50: '#8c66c4',
    500: '#5226a9',
    950: '#000000',
  },
}
SCSS
$custom: #5226a9;
$custom-light: #8c66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5226a9",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 169
  },
  "hsl": {
    "h": 260.153,
    "s": 63.285,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41498,
    "c": 0.19193,
    "h": 290.8
  },
  "luminance": 0.06045
}

Semantic roles & 50–950 ramp

primary
#5226A9
secondary
#A5C467
accent
#E641AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5226A9

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

Preview Lab → · Contrast checker → · Palette generator →

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