#5225AF#5225AF

#5225AF is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.200 H 289.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5225AF
RGBrgb(82, 37, 175)
HSLhsl(260, 65%, 42%)
HSVhsv(260, 79%, 69%)
CMYKcmyk(53.1%, 78.9%, 0%, 31.4%)
CIE-LABlab(29.94, 51.95, -65.36)
CIE-LCHlch(29.94, 83.49, 308.48°)
OKLaboklab(41.96% 0.0671 -0.1879)
OKLCHoklch(41.96% 0.2 289.7)
XYZxyz(11.8769, 6.2116, 41.1223)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225AF #82AF25
analogous
#253DAF #5225AF #9725AF
triadic
#5225AF #AF5225 #25AF52
tetradic
#5225AF #AF253D #82AF25 #25AF97
square
#5225AF #AF253D #82AF25 #25AF97
split-complementary
#5225AF #AF9725 #3DAF25
monochromatic
#23104A #3A1A7C #5225AF #6E3CD6 #936EE0

Accessibility & contrast

On white

9.36
#5225AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5225AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225AF
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225AF#FFFFFF#000000##FFFFFF
##5225AF1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#2F4D6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5225af;
/* rgb */ color: rgb(82, 37, 175);
/* oklch */ color: oklch(42.0% 0.200 289.7);
Tailwind
colors: {
  custom: {
    50: '#8d66c8',
    500: '#5225af',
    950: '#000000',
  },
}
SCSS
$custom: #5225af;
$custom-light: #8d66c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5225af",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 175
  },
  "hsl": {
    "h": 259.565,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41962,
    "c": 0.19957,
    "h": 289.7
  },
  "luminance": 0.06212
}

Semantic roles & 50–950 ramp

primary
#5225AF
secondary
#A8C769
accent
#E840B1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5225AF

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

Preview Lab → · Contrast checker → · Palette generator →

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