#9227AB#9227AB

#9227AB is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.207 H 319.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#9227AB
RGBrgb(146, 39, 171)
HSLhsl(289, 63%, 41%)
HSVhsv(289, 77%, 67%)
CMYKcmyk(14.6%, 77.2%, 0%, 32.9%)
CIE-LABlab(38.73, 61.13, -48.27)
CIE-LCHlch(38.73, 77.90, 321.70°)
OKLaboklab(49.9% 0.1564 -0.1356)
OKLCHoklch(49.9% 0.207 319.1)
XYZxyz(19.9293, 10.5033, 39.4978)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9227AB #40AB27
analogous
#5027AB #9227AB #AB2782
triadic
#9227AB #AB9227 #27AB92
tetradic
#9227AB #AB5027 #40AB27 #2782AB
square
#9227AB #AB5027 #40AB27 #2782AB
split-complementary
#9227AB #82AB27 #27AB50
monochromatic
#3D1047 #671C79 #9227AB #B63DD3 #C96EDE

Accessibility & contrast

On white

6.77
#9227AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9227AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9227AB
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9227AB#FFFFFF#000000##FFFFFF
##9227AB1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9227ab;
/* rgb */ color: rgb(146, 39, 171);
/* oklch */ color: oklch(49.9% 0.207 319.1);
Tailwind
colors: {
  custom: {
    50: '#b66ec5',
    500: '#9227ab',
    950: '#000000',
  },
}
SCSS
$custom: #9227ab;
$custom-light: #b66ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#9227ab",
  "rgb": {
    "r": 146,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 288.636,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49897,
    "c": 0.20704,
    "h": 319.1
  },
  "luminance": 0.10502
}

Semantic roles & 50–950 ramp

primary
#9227AB
secondary
#7AC569
accent
#E64261
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9227AB

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

Preview Lab → · Contrast checker → · Palette generator →

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