#5228A5#5228A5

#5228A5 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.185 H 291.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5228A5
RGBrgb(82, 40, 165)
HSLhsl(260, 61%, 40%)
HSVhsv(260, 76%, 65%)
CMYKcmyk(50.3%, 75.8%, 0%, 35.3%)
CIE-LABlab(29.48, 47.83, -60.10)
CIE-LCHlch(29.48, 76.81, 308.51°)
OKLaboklab(41.36% 0.0677 -0.1726)
OKLCHoklch(41.36% 0.185 291.4)
XYZxyz(11.0281, 6.0276, 36.1724)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228A5 #7BA528
analogous
#283CA5 #5228A5 #9028A5
triadic
#5228A5 #A55228 #28A552
tetradic
#5228A5 #A5283C #7BA528 #28A590
square
#5228A5 #A5283C #7BA528 #28A590
split-complementary
#5228A5 #A59028 #3CA528
monochromatic
#211042 #3A1C74 #5228A5 #6D3BCF #916CDB

Accessibility & contrast

On white

9.52
#5228A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5228A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228A5
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228A5#FFFFFF#000000##FFFFFF
##5228A51.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#364A65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5228a5;
/* rgb */ color: rgb(82, 40, 165);
/* oklch */ color: oklch(41.4% 0.185 291.4);
Tailwind
colors: {
  custom: {
    50: '#8b67c1',
    500: '#5228a5',
    950: '#000000',
  },
}
SCSS
$custom: #5228a5;
$custom-light: #8b67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5228a5",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 260.16,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41355,
    "c": 0.18536,
    "h": 291.4
  },
  "luminance": 0.06028
}

Semantic roles & 50–950 ramp

primary
#5228A5
secondary
#A3C267
accent
#E444AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5228A5

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

Preview Lab → · Contrast checker → · Palette generator →

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