#9227BA#9227BA

#9227BA is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 51.0% C 0.220 H 314.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#9227BA
RGBrgb(146, 39, 186)
HSLhsl(284, 65%, 44%)
HSVhsv(284, 79%, 73%)
CMYKcmyk(21.5%, 79%, 0%, 27.1%)
CIE-LABlab(39.76, 64.02, -55.50)
CIE-LCHlch(39.76, 84.73, 319.08°)
OKLaboklab(50.95% 0.1541 -0.1568)
OKLCHoklch(50.95% 0.22 314.5)
XYZxyz(21.4410, 11.1080, 47.4595)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9227BA #4FBA27
analogous
#4827BA #9227BA #BA2799
triadic
#9227BA #BA9227 #27BA92
tetradic
#9227BA #BA4827 #4FBA27 #2799BA
square
#9227BA #BA4827 #4FBA27 #2799BA
split-complementary
#9227BA #99BA27 #27BA48
monochromatic
#431255 #6A1C87 #9227BA #B046D8 #C679E3

Accessibility & contrast

On white

6.52
#9227BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9227BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9227BA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9227BA#FFFFFF#000000##FFFFFF
##9227BA1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#1B60B7
Tritanopia (blue-blind)
#8E4A71
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9227ba;
/* rgb */ color: rgb(146, 39, 186);
/* oklch */ color: oklch(51.0% 0.220 314.5);
Tailwind
colors: {
  custom: {
    50: '#b76ed0',
    500: '#9227ba',
    950: '#000000',
  },
}
SCSS
$custom: #9227ba;
$custom-light: #b76ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#9227ba",
  "rgb": {
    "r": 146,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 283.673,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50951,
    "c": 0.21987,
    "h": 314.5
  },
  "luminance": 0.11107
}

Semantic roles & 50–950 ramp

primary
#9227BA
secondary
#8ACB72
accent
#E8406D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9227BA

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

Preview Lab → · Contrast checker → · Palette generator →

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