#5225AE#5225AE

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

Color values

HEX#5225AE
RGBrgb(82, 37, 174)
HSLhsl(260, 65%, 41%)
HSVhsv(260, 79%, 68%)
CMYKcmyk(52.9%, 78.7%, 0%, 31.8%)
CIE-LABlab(29.84, 51.68, -64.92)
CIE-LCHlch(29.84, 82.98, 308.52°)
OKLaboklab(41.87% 0.0674 -0.1866)
OKLCHoklch(41.87% 0.198 289.9)
XYZxyz(11.7790, 6.1724, 40.6069)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225AE #81AE25
analogous
#253DAE #5225AE #9725AE
triadic
#5225AE #AE5225 #25AE52
tetradic
#5225AE #AE253D #81AE25 #25AE97
square
#5225AE #AE253D #81AE25 #25AE97
split-complementary
#5225AE #AE9725 #3DAE25
monochromatic
#221049 #3A1A7C #5225AE #6E3BD5 #936DE0

Accessibility & contrast

On white

9.40
#5225AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5225AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225AE
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225AE#FFFFFF#000000##FFFFFF
##5225AE1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5225ae;
/* rgb */ color: rgb(82, 37, 174);
/* oklch */ color: oklch(41.9% 0.198 289.9);
Tailwind
colors: {
  custom: {
    50: '#8d65c7',
    500: '#5225ae',
    950: '#000000',
  },
}
SCSS
$custom: #5225ae;
$custom-light: #8d65c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5225ae",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 174
  },
  "hsl": {
    "h": 259.708,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41865,
    "c": 0.19846,
    "h": 289.9
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#5225AE
secondary
#A8C668
accent
#E840B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5225AE

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

Preview Lab → · Contrast checker → · Palette generator →

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