#9B218D#9B218D

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

Color values

HEX#9B218D
RGBrgb(155, 33, 141)
HSLhsl(307, 65%, 37%)
HSVhsv(307, 79%, 61%)
CMYKcmyk(0%, 78.7%, 9%, 39.2%)
CIE-LABlab(37.81, 59.75, -31.51)
CIE-LCHlch(37.81, 67.55, 332.20°)
OKLaboklab(48.96% 0.173 -0.0865)
OKLCHoklch(48.96% 0.193 333.4)
XYZxyz(18.8693, 9.9810, 26.1269)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B218D #219B2F
analogous
#6C219B #9B218D #9B2150
triadic
#9B218D #8D9B21 #218D9B
tetradic
#9B218D #9B6C21 #219B2F #21509B
square
#9B218D #9B6C21 #219B2F #21509B
split-complementary
#9B218D #509B21 #219B6C
monochromatic
#360C31 #69165F #9B218D #CD2CBB #DC5ACD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B218D#FFFFFF#000000##FFFFFF
##9B218D1.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)
#1C4E90
Deuteranopia (green-blind)
#4C5F8A
Tritanopia (blue-blind)
#A22E56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b218d;
/* rgb */ color: rgb(155, 33, 141);
/* oklch */ color: oklch(49.0% 0.193 333.4);
Tailwind
colors: {
  custom: {
    50: '#bc6baf',
    500: '#9b218d',
    950: '#000000',
  },
}
SCSS
$custom: #9b218d;
$custom-light: #bc6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b218d",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 306.885,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48956,
    "c": 0.19338,
    "h": 333.4
  },
  "luminance": 0.09979
}

Semantic roles & 50–950 ramp

primary
#9B218D
secondary
#58C064
accent
#E85340
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B218D

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

Preview Lab → · Contrast checker → · Palette generator →

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