#9B229D#9B229D

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

Color values

HEX#9B229D
RGBrgb(155, 34, 157)
HSLhsl(299, 64%, 37%)
HSVhsv(299, 78%, 62%)
CMYKcmyk(1.3%, 78.3%, 0%, 38.4%)
CIE-LABlab(38.81, 62.01, -39.66)
CIE-LCHlch(38.81, 73.61, 327.40°)
OKLaboklab(49.96% 0.1721 -0.1101)
OKLCHoklch(49.96% 0.204 327.4)
XYZxyz(20.1751, 10.5484, 32.8652)
Luminance0.1055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B229D #249D22
analogous
#5D229D #9B229D #9D2262
triadic
#9B229D #9D9B22 #229D9B
tetradic
#9B229D #9D5D22 #249D22 #22629D
square
#9B229D #9D5D22 #249D22 #22629D
split-complementary
#9B229D #629D22 #229D5D
monochromatic
#380C38 #69176B #9B229D #CD2DCF #DA5DDC

Accessibility & contrast

On white

6.75
#9B229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9B229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B229D
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B229D#FFFFFF#000000##FFFFFF
##9B229D1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#44619A
Tritanopia (blue-blind)
#A0385F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9b229d;
/* rgb */ color: rgb(155, 34, 157);
/* oklch */ color: oklch(50.0% 0.204 327.4);
Tailwind
colors: {
  custom: {
    50: '#bc6cba',
    500: '#9b229d',
    950: '#000000',
  },
}
SCSS
$custom: #9b229d;
$custom-light: #bc6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#9b229d",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 299.024,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49961,
    "c": 0.20433,
    "h": 327.4
  },
  "luminance": 0.10547
}

Semantic roles & 50–950 ramp

primary
#9B229D
secondary
#5CC15A
accent
#E74043
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9B229D

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

Preview Lab → · Contrast checker → · Palette generator →

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