#5225A8#5225A8

#5225A8 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.192 H 291.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5225A8
RGBrgb(82, 37, 168)
HSLhsl(261, 64%, 40%)
HSVhsv(261, 78%, 66%)
CMYKcmyk(51.2%, 78%, 0%, 34.1%)
CIE-LABlab(29.27, 50.05, -62.26)
CIE-LCHlch(29.27, 79.88, 308.80°)
OKLaboklab(41.29% 0.0692 -0.1789)
OKLCHoklch(41.29% 0.192 291.2)
XYZxyz(11.2071, 5.9437, 37.5949)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225A8 #7BA825
analogous
#2539A8 #5225A8 #9425A8
triadic
#5225A8 #A85225 #25A852
tetradic
#5225A8 #A82539 #7BA825 #25A894
square
#5225A8 #A82539 #7BA825 #25A894
split-complementary
#5225A8 #A89425 #39A825
monochromatic
#210F44 #3A1A76 #5225A8 #6D37D3 #9169DE

Accessibility & contrast

On white

9.59
#5225A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5225A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225A8
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225A8#FFFFFF#000000##FFFFFF
##5225A81.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#344A66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5225a8;
/* rgb */ color: rgb(82, 37, 168);
/* oklch */ color: oklch(41.3% 0.192 291.2);
Tailwind
colors: {
  custom: {
    50: '#8c65c3',
    500: '#5225a8',
    950: '#000000',
  },
}
SCSS
$custom: #5225a8;
$custom-light: #8c65c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5225a8",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 260.611,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41292,
    "c": 0.19179,
    "h": 291.2
  },
  "luminance": 0.05944
}

Semantic roles & 50–950 ramp

primary
#5225A8
secondary
#A3C465
accent
#E741AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5225A8

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

Preview Lab → · Contrast checker → · Palette generator →

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