#5225A7#5225A7

#5225A7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.191 H 291.4°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5225A7
RGBrgb(82, 37, 167)
HSLhsl(261, 64%, 40%)
HSVhsv(261, 78%, 65%)
CMYKcmyk(50.9%, 77.8%, 0%, 34.5%)
CIE-LABlab(29.18, 49.78, -61.81)
CIE-LCHlch(29.18, 79.36, 308.85°)
OKLaboklab(41.2% 0.0695 -0.1776)
OKLCHoklch(41.2% 0.191 291.4)
XYZxyz(11.1143, 5.9066, 37.1062)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225A7 #7AA725
analogous
#2539A7 #5225A7 #9325A7
triadic
#5225A7 #A75225 #25A752
tetradic
#5225A7 #A72539 #7AA725 #25A793
square
#5225A7 #A72539 #7AA725 #25A793
split-complementary
#5225A7 #A79325 #39A725
monochromatic
#210F43 #391A75 #5225A7 #6D37D3 #9169DE

Accessibility & contrast

On white

9.63
#5225A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5225A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225A7
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225A7#FFFFFF#000000##FFFFFF
##5225A71.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#354A65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5225a7;
/* rgb */ color: rgb(82, 37, 167);
/* oklch */ color: oklch(41.2% 0.191 291.4);
Tailwind
colors: {
  custom: {
    50: '#8c65c2',
    500: '#5225a7',
    950: '#000000',
  },
}
SCSS
$custom: #5225a7;
$custom-light: #8c65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5225a7",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 260.769,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.41197,
    "c": 0.19068,
    "h": 291.4
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#5225A7
secondary
#A3C464
accent
#E741AD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5225A7

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

Preview Lab → · Contrast checker → · Palette generator →

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