#9B229C#9B229C

#9B229C is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.204 H 327.7°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#9B229C
RGBrgb(155, 34, 156)
HSLhsl(300, 64%, 37%)
HSVhsv(300, 78%, 61%)
CMYKcmyk(0.6%, 78.2%, 0%, 38.8%)
CIE-LABlab(38.75, 61.85, -39.15)
CIE-LCHlch(38.75, 73.20, 327.67°)
OKLaboklab(49.9% 0.1722 -0.1087)
OKLCHoklch(49.9% 0.204 327.7)
XYZxyz(20.0901, 10.5144, 32.4174)
Luminance0.1051 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B229C #239C22
analogous
#5E229C #9B229C #9C2260
triadic
#9B229C #9C9B22 #229C9B
tetradic
#9B229C #9C5E22 #239C22 #22609C
square
#9B229C #9C5E22 #239C22 #22609C
split-complementary
#9B229C #609C22 #229C5E
monochromatic
#370C38 #69176A #9B229C #CD2DCE #DB5DDC

Accessibility & contrast

On white

6.77
#9B229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9B229C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B229C
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B229C#FFFFFF#000000##FFFFFF
##9B229C1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#446199
Tritanopia (blue-blind)
#A0375F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9b229c;
/* rgb */ color: rgb(155, 34, 156);
/* oklch */ color: oklch(49.9% 0.204 327.7);
Tailwind
colors: {
  custom: {
    50: '#bc6cba',
    500: '#9b229c',
    950: '#000000',
  },
}
SCSS
$custom: #9b229c;
$custom-light: #bc6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#9b229c",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 299.508,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.499,
    "c": 0.20357,
    "h": 327.7
  },
  "luminance": 0.10513
}

Semantic roles & 50–950 ramp

primary
#9B229C
secondary
#5AC05A
accent
#E74142
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #9B229C

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

Preview Lab → · Contrast checker → · Palette generator →

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