#5225A2#5225A2

#5225A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.185 H 292.5°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5225A2
RGBrgb(82, 37, 162)
HSLhsl(262, 63%, 39%)
HSVhsv(262, 77%, 64%)
CMYKcmyk(49.4%, 77.2%, 0%, 36.5%)
CIE-LABlab(28.71, 48.42, -59.55)
CIE-LCHlch(28.71, 76.76, 309.12°)
OKLaboklab(40.73% 0.071 -0.1709)
OKLCHoklch(40.73% 0.185 292.5)
XYZxyz(10.6610, 5.7252, 34.7188)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225A2 #75A225
analogous
#2537A2 #5225A2 #9125A2
triadic
#5225A2 #A25225 #25A252
tetradic
#5225A2 #A22537 #75A225 #25A291
square
#5225A2 #A22537 #75A225 #25A291
split-complementary
#5225A2 #A29125 #37A225
monochromatic
#200E3E #391A70 #5225A2 #6C34D1 #9065DC

Accessibility & contrast

On white

9.79
#5225A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5225A2
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225A2#FFFFFF#000000##FFFFFF
##5225A21.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#384862
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5225a2;
/* rgb */ color: rgb(82, 37, 162);
/* oklch */ color: oklch(40.7% 0.185 292.5);
Tailwind
colors: {
  custom: {
    50: '#8b65bf',
    500: '#5225a2',
    950: '#000000',
  },
}
SCSS
$custom: #5225a2;
$custom-light: #8b65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5225a2",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 261.6,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40728,
    "c": 0.18508,
    "h": 292.5
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

primary
#5225A2
secondary
#9FC261
accent
#E642AB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5225A2

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

Preview Lab → · Contrast checker → · Palette generator →

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