#5225A3#5225A3

#5225A3 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.186 H 292.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5225A3
RGBrgb(82, 37, 163)
HSLhsl(261, 63%, 39%)
HSVhsv(261, 77%, 64%)
CMYKcmyk(49.7%, 77.3%, 0%, 36.1%)
CIE-LABlab(28.80, 48.70, -60.01)
CIE-LCHlch(28.80, 77.28, 309.06°)
OKLaboklab(40.82% 0.0707 -0.1723)
OKLCHoklch(40.82% 0.186 292.3)
XYZxyz(10.7502, 5.7609, 35.1888)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225A3 #76A325
analogous
#2537A3 #5225A3 #9125A3
triadic
#5225A3 #A35225 #25A352
tetradic
#5225A3 #A32537 #76A325 #25A391
square
#5225A3 #A32537 #76A325 #25A391
split-complementary
#5225A3 #A39125 #37A325
monochromatic
#200E3F #391A71 #5225A3 #6C34D1 #9066DC

Accessibility & contrast

On white

9.76
#5225A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5225A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225A3
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225A3#FFFFFF#000000##FFFFFF
##5225A31.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#384863
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5225a3;
/* rgb */ color: rgb(82, 37, 163);
/* oklch */ color: oklch(40.8% 0.186 292.3);
Tailwind
colors: {
  custom: {
    50: '#8b65bf',
    500: '#5225a3',
    950: '#000000',
  },
}
SCSS
$custom: #5225a3;
$custom-light: #8b65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5225a3",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 163
  },
  "hsl": {
    "h": 261.429,
    "s": 63,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40821,
    "c": 0.1862,
    "h": 292.3
  },
  "luminance": 0.05761
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5225A3

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

Preview Lab → · Contrast checker → · Palette generator →

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