#9B228B#9B228B

#9B228B is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.191 H 334.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#9B228B
RGBrgb(155, 34, 139)
HSLhsl(308, 64%, 37%)
HSVhsv(308, 78%, 61%)
CMYKcmyk(0%, 78.1%, 10.3%, 39.2%)
CIE-LABlab(37.80, 59.15, -30.29)
CIE-LCHlch(37.80, 66.46, 332.89°)
OKLaboklab(48.92% 0.172 -0.083)
OKLCHoklch(48.92% 0.191 334.2)
XYZxyz(18.7500, 9.9784, 25.3596)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B228B #229B32
analogous
#6F229B #9B228B #9B224F
triadic
#9B228B #8B9B22 #228B9B
tetradic
#9B228B #9B6F22 #229B32 #224F9B
square
#9B228B #9B6F22 #229B32 #224F9B
split-complementary
#9B228B #4F9B22 #229B6F
monochromatic
#370C31 #69175E #9B228B #CD2DB8 #DB5CCA

Accessibility & contrast

On white

7.01
#9B228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#9B228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B228B
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B228B#FFFFFF#000000##FFFFFF
##9B228B1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4E8E
Deuteranopia (green-blind)
#4E5F88
Tritanopia (blue-blind)
#A32E55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b228b;
/* rgb */ color: rgb(155, 34, 139);
/* oklch */ color: oklch(48.9% 0.191 334.2);
Tailwind
colors: {
  custom: {
    50: '#bc6cad',
    500: '#9b228b',
    950: '#000000',
  },
}
SCSS
$custom: #9b228b;
$custom-light: #bc6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9b228b",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 307.934,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48919,
    "c": 0.19097,
    "h": 334.2
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#9B228B
secondary
#59C067
accent
#E75741
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B228B

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

Preview Lab → · Contrast checker → · Palette generator →

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