#5226AE#5226AE

#5226AE is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.198 H 289.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5226AE
RGBrgb(82, 38, 174)
HSLhsl(259, 64%, 42%)
HSVhsv(259, 78%, 68%)
CMYKcmyk(52.9%, 78.2%, 0%, 31.8%)
CIE-LABlab(30.00, 51.23, -64.66)
CIE-LCHlch(30.00, 82.50, 308.39°)
OKLaboklab(41.97% 0.0667 -0.1859)
OKLCHoklch(41.97% 0.198 289.7)
XYZxyz(11.8106, 6.2355, 40.6175)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226AE #82AE26
analogous
#263EAE #5226AE #9626AE
triadic
#5226AE #AE5226 #26AE52
tetradic
#5226AE #AE263E #82AE26 #26AE96
square
#5226AE #AE263E #82AE26 #26AE96
split-complementary
#5226AE #AE9626 #3EAE26
monochromatic
#23104A #3A1B7C #5226AE #6E3DD5 #936FE0

Accessibility & contrast

On white

9.34
#5226AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5226AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226AE
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226AE#FFFFFF#000000##FFFFFF
##5226AE1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#2F4D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5226ae;
/* rgb */ color: rgb(82, 38, 174);
/* oklch */ color: oklch(42.0% 0.198 289.7);
Tailwind
colors: {
  custom: {
    50: '#8d66c7',
    500: '#5226ae',
    950: '#000000',
  },
}
SCSS
$custom: #5226ae;
$custom-light: #8d66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5226ae",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 174
  },
  "hsl": {
    "h": 259.412,
    "s": 64.151,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41974,
    "c": 0.19752,
    "h": 289.7
  },
  "luminance": 0.06236
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5226AE

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

Preview Lab → · Contrast checker → · Palette generator →

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