#5225A9#5225A9

#5225A9 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.193 H 290.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5225A9
RGBrgb(82, 37, 169)
HSLhsl(260, 64%, 40%)
HSVhsv(260, 78%, 66%)
CMYKcmyk(51.5%, 78.1%, 0%, 33.7%)
CIE-LABlab(29.36, 50.32, -62.70)
CIE-LCHlch(29.36, 80.40, 308.75°)
OKLaboklab(41.39% 0.0689 -0.1802)
OKLCHoklch(41.39% 0.193 290.9)
XYZxyz(11.3006, 5.9811, 38.0875)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225A9 #7CA925
analogous
#253AA9 #5225A9 #9425A9
triadic
#5225A9 #A95225 #25A952
tetradic
#5225A9 #A9253A #7CA925 #25A994
square
#5225A9 #A9253A #7CA925 #25A994
split-complementary
#5225A9 #A99425 #3AA925
monochromatic
#210F45 #3A1A77 #5225A9 #6D38D3 #926ADE

Accessibility & contrast

On white

9.56
#5225A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5225A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225A9
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225A9#FFFFFF#000000##FFFFFF
##5225A91.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#334A66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5225a9;
/* rgb */ color: rgb(82, 37, 169);
/* oklch */ color: oklch(41.4% 0.193 290.9);
Tailwind
colors: {
  custom: {
    50: '#8c65c4',
    500: '#5225a9',
    950: '#000000',
  },
}
SCSS
$custom: #5225a9;
$custom-light: #8c65c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5225a9",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 260.455,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41387,
    "c": 0.19291,
    "h": 290.9
  },
  "luminance": 0.05982
}

Semantic roles & 50–950 ramp

primary
#5225A9
secondary
#A4C465
accent
#E741AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5225A9

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

Preview Lab → · Contrast checker → · Palette generator →

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