#9B228D#9B228D

#9B228D is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.192 H 333.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9B228D
RGBrgb(155, 34, 141)
HSLhsl(307, 64%, 37%)
HSVhsv(307, 78%, 61%)
CMYKcmyk(0%, 78.1%, 9%, 39.2%)
CIE-LABlab(37.91, 59.46, -31.35)
CIE-LCHlch(37.91, 67.22, 332.20°)
OKLaboklab(49.03% 0.1721 -0.086)
OKLCHoklch(49.03% 0.192 333.4)
XYZxyz(18.8975, 10.0374, 26.1363)
Luminance0.1004 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B228D #229B30
analogous
#6D229B #9B228D #9B2251
triadic
#9B228D #8D9B22 #228D9B
tetradic
#9B228D #9B6D22 #229B30 #22519B
square
#9B228D #9B6D22 #229B30 #22519B
split-complementary
#9B228D #519B22 #229B6D
monochromatic
#370C32 #69175F #9B228D #CD2DBB #DB5CCD

Accessibility & contrast

On white

6.98
#9B228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9B228D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B228D
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B228D#FFFFFF#000000##FFFFFF
##9B228D1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E90
Deuteranopia (green-blind)
#4D5F8A
Tritanopia (blue-blind)
#A22F56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b228d;
/* rgb */ color: rgb(155, 34, 141);
/* oklch */ color: oklch(49.0% 0.192 333.4);
Tailwind
colors: {
  custom: {
    50: '#bc6caf',
    500: '#9b228d',
    950: '#000000',
  },
}
SCSS
$custom: #9b228d;
$custom-light: #bc6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b228d",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 306.942,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49029,
    "c": 0.19241,
    "h": 333.4
  },
  "luminance": 0.10036
}

Semantic roles & 50–950 ramp

primary
#9B228D
secondary
#59C065
accent
#E75441
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B228D

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

Preview Lab → · Contrast checker → · Palette generator →

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