#5226AB#5226AB

#5226AB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.194 H 290.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5226AB
RGBrgb(82, 38, 171)
HSLhsl(260, 64%, 41%)
HSVhsv(260, 78%, 67%)
CMYKcmyk(52%, 77.8%, 0%, 32.9%)
CIE-LABlab(29.71, 50.42, -63.34)
CIE-LCHlch(29.71, 80.95, 308.52°)
OKLaboklab(41.69% 0.0676 -0.182)
OKLCHoklch(41.69% 0.194 290.4)
XYZxyz(11.5214, 6.1198, 39.0944)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226AB #7FAB26
analogous
#263CAB #5226AB #9426AB
triadic
#5226AB #AB5226 #26AB52
tetradic
#5226AB #AB263C #7FAB26 #26AB94
square
#5226AB #AB263C #7FAB26 #26AB94
split-complementary
#5226AB #AB9426 #3CAB26
monochromatic
#221047 #3A1B79 #5226AB #6D3BD3 #926DDF

Accessibility & contrast

On white

9.44
#5226AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5226AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226AB
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226AB#FFFFFF#000000##FFFFFF
##5226AB1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#324C68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5226ab;
/* rgb */ color: rgb(82, 38, 171);
/* oklch */ color: oklch(41.7% 0.194 290.4);
Tailwind
colors: {
  custom: {
    50: '#8c66c5',
    500: '#5226ab',
    950: '#000000',
  },
}
SCSS
$custom: #5226ab;
$custom-light: #8c66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5226ab",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 259.85,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41687,
    "c": 0.19417,
    "h": 290.4
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#5226AB
secondary
#A6C568
accent
#E741B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5226AB

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

Preview Lab → · Contrast checker → · Palette generator →

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