#8228A6#8228A6

#8228A6 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.196 H 314.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#8228A6
RGBrgb(130, 40, 166)
HSLhsl(283, 61%, 40%)
HSVhsv(283, 76%, 65%)
CMYKcmyk(21.7%, 75.9%, 0%, 34.9%)
CIE-LABlab(36.02, 56.65, -49.78)
CIE-LCHlch(36.02, 75.42, 318.69°)
OKLaboklab(47.37% 0.1362 -0.1406)
OKLCHoklch(47.37% 0.196 314.1)
XYZxyz(16.8465, 9.0172, 36.9221)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8228A6 #4CA628
analogous
#4328A6 #8228A6 #A6288B
triadic
#8228A6 #A68228 #28A682
tetradic
#8228A6 #A64328 #4CA628 #288BA6
square
#8228A6 #A64328 #4CA628 #288BA6
split-complementary
#8228A6 #8BA628 #28A643
monochromatic
#351043 #5B1C75 #8228A6 #A53BD0 #BC6DDC

Accessibility & contrast

On white

7.49
#8228A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8228A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8228A6
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8228A6#FFFFFF#000000##FFFFFF
##8228A61.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1E57A3
Tritanopia (blue-blind)
#7F4466
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8228a6;
/* rgb */ color: rgb(130, 40, 166);
/* oklch */ color: oklch(47.4% 0.196 314.1);
Tailwind
colors: {
  custom: {
    50: '#aa6cc1',
    500: '#8228a6',
    950: '#000000',
  },
}
SCSS
$custom: #8228a6;
$custom-light: #aa6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8228a6",
  "rgb": {
    "r": 130,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 282.857,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4737,
    "c": 0.19572,
    "h": 314.1
  },
  "luminance": 0.09017
}

Semantic roles & 50–950 ramp

primary
#8228A6
secondary
#81C267
accent
#E44471
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #8228A6

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

Preview Lab → · Contrast checker → · Palette generator →

#8228A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva