#9228AB#9228AB

#9228AB is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.0% C 0.206 H 319.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#9228AB
RGBrgb(146, 40, 171)
HSLhsl(289, 62%, 41%)
HSVhsv(289, 77%, 67%)
CMYKcmyk(14.6%, 76.6%, 0%, 32.9%)
CIE-LABlab(38.85, 60.80, -48.09)
CIE-LCHlch(38.85, 77.52, 321.66°)
OKLaboklab(49.98% 0.1556 -0.1351)
OKLCHoklch(49.98% 0.206 319)
XYZxyz(19.9626, 10.5698, 39.5089)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9228AB #41AB28
analogous
#5128AB #9228AB #AB2883
triadic
#9228AB #AB9228 #28AB92
tetradic
#9228AB #AB5128 #41AB28 #2883AB
square
#9228AB #AB5128 #41AB28 #2883AB
split-complementary
#9228AB #83AB28 #28AB51
monochromatic
#3D1148 #681C79 #9228AB #B63ED2 #C970DE

Accessibility & contrast

On white

6.74
#9228AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9228AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9228AB
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9228AB#FFFFFF#000000##FFFFFF
##9228AB1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#315FA8
Tritanopia (blue-blind)
#924468
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9228ab;
/* rgb */ color: rgb(146, 40, 171);
/* oklch */ color: oklch(50.0% 0.206 319.0);
Tailwind
colors: {
  custom: {
    50: '#b66ec5',
    500: '#9228ab',
    950: '#000000',
  },
}
SCSS
$custom: #9228ab;
$custom-light: #b66ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#9228ab",
  "rgb": {
    "r": 146,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 288.55,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49979,
    "c": 0.20603,
    "h": 319
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#9228AB
secondary
#7CC46A
accent
#E54362
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9228AB

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

Preview Lab → · Contrast checker → · Palette generator →

#9228AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva