#8228AF#8228AF

#8228AF is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.0% C 0.204 H 311.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8228AF
RGBrgb(130, 40, 175)
HSLhsl(280, 63%, 42%)
HSVhsv(280, 77%, 69%)
CMYKcmyk(25.7%, 77.1%, 0%, 31.4%)
CIE-LABlab(36.67, 58.52, -54.11)
CIE-LCHlch(36.67, 79.71, 317.24°)
OKLaboklab(48.03% 0.1346 -0.1533)
OKLCHoklch(48.03% 0.204 311.3)
XYZxyz(17.7011, 9.3590, 41.4231)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8228AF #55AF28
analogous
#3E28AF #8228AF #AF2899
triadic
#8228AF #AF8228 #28AF82
tetradic
#8228AF #AF3E28 #55AF28 #2899AF
square
#8228AF #AF3E28 #55AF28 #2899AF
split-complementary
#8228AF #99AF28 #28AF3E
monochromatic
#38114B #5D1D7D #8228AF #A341D4 #BB73DF

Accessibility & contrast

On white

7.31
#8228AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8228AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8228AF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8228AF#FFFFFF#000000##FFFFFF
##8228AF1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0858AC
Tritanopia (blue-blind)
#7C486B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8228af;
/* rgb */ color: rgb(130, 40, 175);
/* oklch */ color: oklch(48.0% 0.204 311.3);
Tailwind
colors: {
  custom: {
    50: '#ab6cc8',
    500: '#8228af',
    950: '#000000',
  },
}
SCSS
$custom: #8228af;
$custom-light: #ab6cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8228af",
  "rgb": {
    "r": 130,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 280,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48033,
    "c": 0.20402,
    "h": 311.3
  },
  "luminance": 0.09359
}

Semantic roles & 50–950 ramp

primary
#8228AF
secondary
#8BC66D
accent
#E64279
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8228AF

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

Preview Lab → · Contrast checker → · Palette generator →

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