#5226A0#5226A0

#5226A0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.182 H 292.9°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5226A0
RGBrgb(82, 38, 160)
HSLhsl(262, 62%, 39%)
HSVhsv(262, 76%, 63%)
CMYKcmyk(48.8%, 76.3%, 0%, 37.3%)
CIE-LABlab(28.69, 47.41, -58.37)
CIE-LCHlch(28.69, 75.20, 309.09°)
OKLaboklab(40.66% 0.0707 -0.1675)
OKLCHoklch(40.66% 0.182 292.9)
XYZxyz(10.5162, 5.7178, 33.8004)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226A0 #74A026
analogous
#2637A0 #5226A0 #8F26A0
triadic
#5226A0 #A05226 #26A052
tetradic
#5226A0 #A02637 #74A026 #26A08F
square
#5226A0 #A02637 #74A026 #26A08F
split-complementary
#5226A0 #A08F26 #37A026
monochromatic
#1F0F3D #391A6F #5226A0 #6C34CF #9066DB

Accessibility & contrast

On white

9.80
#5226A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5226A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226A0
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226A0#FFFFFF#000000##FFFFFF
##5226A01.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#394761
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5226a0;
/* rgb */ color: rgb(82, 38, 160);
/* oklch */ color: oklch(40.7% 0.182 292.9);
Tailwind
colors: {
  custom: {
    50: '#8b65bd',
    500: '#5226a0',
    950: '#000000',
  },
}
SCSS
$custom: #5226a0;
$custom-light: #8b65bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5226a0",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 160
  },
  "hsl": {
    "h": 261.639,
    "s": 61.616,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40658,
    "c": 0.18179,
    "h": 292.9
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#5226A0
secondary
#9EC061
accent
#E543AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5226A0

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

Preview Lab → · Contrast checker → · Palette generator →

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