#9B229F#9B229F

#9B229F is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.206 H 326.7°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#9B229F
RGBrgb(155, 34, 159)
HSLhsl(298, 65%, 38%)
HSVhsv(298, 79%, 62%)
CMYKcmyk(2.5%, 78.6%, 0%, 37.6%)
CIE-LABlab(38.93, 62.35, -40.68)
CIE-LCHlch(38.93, 74.44, 326.88°)
OKLaboklab(50.08% 0.172 -0.1131)
OKLCHoklch(50.08% 0.206 326.7)
XYZxyz(20.3472, 10.6173, 33.7718)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B229F #269F22
analogous
#5C229F #9B229F #9F2264
triadic
#9B229F #9F9B22 #229F9B
tetradic
#9B229F #9F5C22 #269F22 #22649F
square
#9B229F #9F5C22 #269F22 #22649F
split-complementary
#9B229F #649F22 #229F5C
monochromatic
#390C3A #6A176D #9B229F #CC2DD1 #D95FDD

Accessibility & contrast

On white

6.72
#9B229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9B229F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B229F
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B229F#FFFFFF#000000##FFFFFF
##9B229F1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#42619C
Tritanopia (blue-blind)
#9F3960
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9b229f;
/* rgb */ color: rgb(155, 34, 159);
/* oklch */ color: oklch(50.1% 0.206 326.7);
Tailwind
colors: {
  custom: {
    50: '#bc6cbc',
    500: '#9b229f',
    950: '#000000',
  },
}
SCSS
$custom: #9b229f;
$custom-light: #bc6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b229f",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 298.08,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50084,
    "c": 0.20588,
    "h": 326.7
  },
  "luminance": 0.10616
}

Semantic roles & 50–950 ramp

primary
#9B229F
secondary
#5FC15B
accent
#E84045
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9B229F

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

Preview Lab → · Contrast checker → · Palette generator →

#9B229F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva