#5226A2#5226A2

#5226A2 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.184 H 292.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5226A2
RGBrgb(82, 38, 162)
HSLhsl(261, 62%, 39%)
HSVhsv(261, 77%, 64%)
CMYKcmyk(49.4%, 76.5%, 0%, 36.5%)
CIE-LABlab(28.87, 47.96, -59.28)
CIE-LCHlch(28.87, 76.25, 308.97°)
OKLaboklab(40.84% 0.0702 -0.1701)
OKLCHoklch(40.84% 0.184 292.4)
XYZxyz(10.6925, 5.7883, 34.7293)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226A2 #76A226
analogous
#2638A2 #5226A2 #9026A2
triadic
#5226A2 #A25226 #26A252
tetradic
#5226A2 #A22638 #76A226 #26A290
square
#5226A2 #A22638 #76A226 #26A290
split-complementary
#5226A2 #A29026 #38A226
monochromatic
#200F3F #391A70 #5226A2 #6C35D0 #9067DB

Accessibility & contrast

On white

9.73
#5226A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5226A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226A2
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226A2#FFFFFF#000000##FFFFFF
##5226A21.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#384863
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5226a2;
/* rgb */ color: rgb(82, 38, 162);
/* oklch */ color: oklch(40.8% 0.184 292.4);
Tailwind
colors: {
  custom: {
    50: '#8b65bf',
    500: '#5226a2',
    950: '#000000',
  },
}
SCSS
$custom: #5226a2;
$custom-light: #8b65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5226a2",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 261.29,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40843,
    "c": 0.18404,
    "h": 292.4
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#5226A2
secondary
#A0C163
accent
#E543AB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5226A2

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

Preview Lab → · Contrast checker → · Palette generator →

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