#9228B7#9228B7

#9228B7 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.8% C 0.216 H 315.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9228B7
RGBrgb(146, 40, 183)
HSLhsl(284, 64%, 44%)
HSVhsv(284, 78%, 72%)
CMYKcmyk(20.2%, 78.1%, 0%, 28.2%)
CIE-LABlab(39.66, 63.11, -53.89)
CIE-LCHlch(39.66, 82.99, 319.50°)
OKLaboklab(50.81% 0.1538 -0.1521)
OKLCHoklch(50.81% 0.216 315.3)
XYZxyz(21.1587, 11.0483, 45.8085)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9228B7 #4DB728
analogous
#4B28B7 #9228B7 #B72894
triadic
#9228B7 #B79228 #28B792
tetradic
#9228B7 #B74B28 #4DB728 #2894B7
square
#9228B7 #B74B28 #4DB728 #2894B7
split-complementary
#9228B7 #94B728 #28B74B
monochromatic
#421253 #6A1D85 #9228B7 #B146D6 #C678E1

Accessibility & contrast

On white

6.54
#9228B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9228B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9228B7
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9228B7#FFFFFF#000000##FFFFFF
##9228B71.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)
#0058BB
Deuteranopia (green-blind)
#2260B4
Tritanopia (blue-blind)
#8F496F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9228b7;
/* rgb */ color: rgb(146, 40, 183);
/* oklch */ color: oklch(50.8% 0.216 315.3);
Tailwind
colors: {
  custom: {
    50: '#b66fcd',
    500: '#9228b7',
    950: '#000000',
  },
}
SCSS
$custom: #9228b7;
$custom-light: #b66fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#9228b7",
  "rgb": {
    "r": 146,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 284.476,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50813,
    "c": 0.21634,
    "h": 315.3
  },
  "luminance": 0.11047
}

Semantic roles & 50–950 ramp

primary
#9228B7
secondary
#88C972
accent
#E7416C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9228B7

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

Preview Lab → · Contrast checker → · Palette generator →

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