#5228AE#5228AE

#5228AE is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.196 H 289.5°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5228AE
RGBrgb(82, 40, 174)
HSLhsl(259, 63%, 42%)
HSVhsv(259, 77%, 68%)
CMYKcmyk(52.9%, 77%, 0%, 31.8%)
CIE-LABlab(30.32, 50.31, -64.14)
CIE-LCHlch(30.32, 81.52, 308.11°)
OKLaboklab(42.2% 0.0652 -0.1844)
OKLCHoklch(42.2% 0.196 289.5)
XYZxyz(11.8762, 6.3669, 40.6393)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228AE #84AE28
analogous
#2841AE #5228AE #9528AE
triadic
#5228AE #AE5228 #28AE52
tetradic
#5228AE #AE2841 #84AE28 #28AE95
square
#5228AE #AE2841 #84AE28 #28AE95
split-complementary
#5228AE #AE9528 #41AE28
monochromatic
#23114A #3B1D7C #5228AE #6E40D3 #9472DF

Accessibility & contrast

On white

9.24
#5228AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5228AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228AE
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228AE#FFFFFF#000000##FFFFFF
##5228AE1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#2F4E6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5228ae;
/* rgb */ color: rgb(82, 40, 174);
/* oklch */ color: oklch(42.2% 0.196 289.5);
Tailwind
colors: {
  custom: {
    50: '#8d67c7',
    500: '#5228ae',
    950: '#000000',
  },
}
SCSS
$custom: #5228ae;
$custom-light: #8d67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5228ae",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 258.806,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42198,
    "c": 0.19559,
    "h": 289.5
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#5228AE
secondary
#AAC66C
accent
#E642B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5228AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5228AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva