#5225A4#5225A4

#5225A4 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.187 H 292.1°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5225A4
RGBrgb(82, 37, 164)
HSLhsl(261, 63%, 39%)
HSVhsv(261, 77%, 64%)
CMYKcmyk(50%, 77.4%, 0%, 35.7%)
CIE-LABlab(28.89, 48.97, -60.46)
CIE-LCHlch(28.89, 77.80, 309.00°)
OKLaboklab(40.92% 0.0704 -0.1736)
OKLCHoklch(40.92% 0.187 292.1)
XYZxyz(10.8402, 5.7969, 35.6625)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225A4 #77A425
analogous
#2538A4 #5225A4 #9225A4
triadic
#5225A4 #A45225 #25A452
tetradic
#5225A4 #A42538 #77A425 #25A492
square
#5225A4 #A42538 #77A425 #25A492
split-complementary
#5225A4 #A49225 #38A425
monochromatic
#200E40 #391A72 #5225A4 #6C35D1 #9167DD

Accessibility & contrast

On white

9.72
#5225A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5225A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225A4
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225A4#FFFFFF#000000##FFFFFF
##5225A41.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#374863
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5225a4;
/* rgb */ color: rgb(82, 37, 164);
/* oklch */ color: oklch(40.9% 0.187 292.1);
Tailwind
colors: {
  custom: {
    50: '#8b65c0',
    500: '#5225a4',
    950: '#000000',
  },
}
SCSS
$custom: #5225a4;
$custom-light: #8b65c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5225a4",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 261.26,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40915,
    "c": 0.18732,
    "h": 292.1
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#5225A4
secondary
#A0C262
accent
#E642AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5225A4

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

Preview Lab → · Contrast checker → · Palette generator →

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