#9227B9#9227B9

#9227B9 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.9% C 0.219 H 314.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9227B9
RGBrgb(146, 39, 185)
HSLhsl(284, 65%, 44%)
HSVhsv(284, 79%, 73%)
CMYKcmyk(21.1%, 78.9%, 0%, 27.5%)
CIE-LABlab(39.69, 63.82, -55.03)
CIE-LCHlch(39.69, 84.27, 319.23°)
OKLaboklab(50.88% 0.1543 -0.1554)
OKLCHoklch(50.88% 0.219 314.8)
XYZxyz(21.3351, 11.0656, 46.9016)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9227B9 #4EB927
analogous
#4927B9 #9227B9 #B92797
triadic
#9227B9 #B99227 #27B992
tetradic
#9227B9 #B94927 #4EB927 #2797B9
square
#9227B9 #B94927 #4EB927 #2797B9
split-complementary
#9227B9 #97B927 #27B949
monochromatic
#421254 #6A1C86 #9227B9 #B145D8 #C678E3

Accessibility & contrast

On white

6.54
#9227B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9227B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9227B9
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9227B9#FFFFFF#000000##FFFFFF
##9227B91.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#1D60B6
Tritanopia (blue-blind)
#8F4A70
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9227b9;
/* rgb */ color: rgb(146, 39, 185);
/* oklch */ color: oklch(50.9% 0.219 314.8);
Tailwind
colors: {
  custom: {
    50: '#b76ecf',
    500: '#9227b9',
    950: '#000000',
  },
}
SCSS
$custom: #9227b9;
$custom-light: #b76ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#9227b9",
  "rgb": {
    "r": 146,
    "g": 39,
    "b": 185
  },
  "hsl": {
    "h": 283.973,
    "s": 65.179,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50878,
    "c": 0.21901,
    "h": 314.8
  },
  "luminance": 0.11065
}

Semantic roles & 50–950 ramp

primary
#9227B9
secondary
#89CA72
accent
#E8406D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9227B9

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

Preview Lab → · Contrast checker → · Palette generator →

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