#9227A2#9227A2

#9227A2 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.199 H 322.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9227A2
RGBrgb(146, 39, 162)
HSLhsl(292, 61%, 39%)
HSVhsv(292, 76%, 64%)
CMYKcmyk(9.9%, 75.9%, 0%, 36.5%)
CIE-LABlab(38.15, 59.47, -43.82)
CIE-LCHlch(38.15, 73.87, 323.62°)
OKLaboklab(49.3% 0.1574 -0.1226)
OKLCHoklch(49.3% 0.199 322.1)
XYZxyz(19.1005, 10.1718, 35.1327)
Luminance0.1017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9227A2 #37A227
analogous
#5527A2 #9227A2 #A22775
triadic
#9227A2 #A29227 #27A292
tetradic
#9227A2 #A25527 #37A227 #2775A2
square
#9227A2 #A25527 #37A227 #2775A2
split-complementary
#9227A2 #75A227 #27A255
monochromatic
#390F3F #661B71 #9227A2 #BB37CF #CC69DB

Accessibility & contrast

On white

6.92
#9227A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9227A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9227A2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9227A2#FFFFFF#000000##FFFFFF
##9227A21.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#395E9F
Tritanopia (blue-blind)
#943F63
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9227a2;
/* rgb */ color: rgb(146, 39, 162);
/* oklch */ color: oklch(49.3% 0.199 322.1);
Tailwind
colors: {
  custom: {
    50: '#b66dbe',
    500: '#9227a2',
    950: '#000000',
  },
}
SCSS
$custom: #9227a2;
$custom-light: #b66dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9227a2",
  "rgb": {
    "r": 146,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 292.195,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49299,
    "c": 0.19946,
    "h": 322.1
  },
  "luminance": 0.10171
}

Semantic roles & 50–950 ramp

primary
#9227A2
secondary
#70C164
accent
#E44358
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9227A2

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

Preview Lab → · Contrast checker → · Palette generator →

#9227A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva