#9228B4#9228B4

#9228B4 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.6% C 0.214 H 316.2°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#9228B4
RGBrgb(146, 40, 180)
HSLhsl(285, 64%, 43%)
HSVhsv(285, 78%, 71%)
CMYKcmyk(18.9%, 77.8%, 0%, 29.4%)
CIE-LABlab(39.45, 62.53, -52.46)
CIE-LCHlch(39.45, 81.62, 320.00°)
OKLaboklab(50.6% 0.1543 -0.1479)
OKLCHoklch(50.6% 0.214 316.2)
XYZxyz(20.8498, 10.9247, 44.1816)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9228B4 #4AB428
analogous
#4C28B4 #9228B4 #B42890
triadic
#9228B4 #B49228 #28B492
tetradic
#9228B4 #B44C28 #4AB428 #2890B4
square
#9228B4 #B44C28 #4AB428 #2890B4
split-complementary
#9228B4 #90B428 #28B44C
monochromatic
#411250 #691D82 #9228B4 #B244D5 #C776E1

Accessibility & contrast

On white

6.59
#9228B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9228B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9228B4
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9228B4#FFFFFF#000000##FFFFFF
##9228B41.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#2660B1
Tritanopia (blue-blind)
#90486E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9228b4;
/* rgb */ color: rgb(146, 40, 180);
/* oklch */ color: oklch(50.6% 0.214 316.2);
Tailwind
colors: {
  custom: {
    50: '#b66ecb',
    500: '#9228b4',
    950: '#000000',
  },
}
SCSS
$custom: #9228b4;
$custom-light: #b66ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#9228b4",
  "rgb": {
    "r": 146,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 285.429,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50601,
    "c": 0.21375,
    "h": 316.2
  },
  "luminance": 0.10924
}

Semantic roles & 50–950 ramp

primary
#9228B4
secondary
#85C870
accent
#E74169
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #9228B4

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

Preview Lab → · Contrast checker → · Palette generator →

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