#9B218C#9B218C

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

Color values

HEX#9B218C
RGBrgb(155, 33, 140)
HSLhsl(307, 65%, 37%)
HSVhsv(307, 79%, 61%)
CMYKcmyk(0%, 78.7%, 9.7%, 39.2%)
CIE-LABlab(37.76, 59.60, -30.98)
CIE-LCHlch(37.76, 67.17, 332.53°)
OKLaboklab(48.9% 0.1729 -0.085)
OKLCHoklch(48.9% 0.193 333.8)
XYZxyz(18.7952, 9.9514, 25.7368)
Luminance0.0995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B218C #219B30
analogous
#6D219B #9B218C #9B214F
triadic
#9B218C #8C9B21 #218C9B
tetradic
#9B218C #9B6D21 #219B30 #214F9B
square
#9B218C #9B6D21 #219B30 #214F9B
split-complementary
#9B218C #4F9B21 #219B6D
monochromatic
#360C31 #69165E #9B218C #CD2CBA #DC5ACC

Accessibility & contrast

On white

7.02
#9B218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9B218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B218C
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B218C#FFFFFF#000000##FFFFFF
##9B218C1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E8F
Deuteranopia (green-blind)
#4D5F89
Tritanopia (blue-blind)
#A22E55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b218c;
/* rgb */ color: rgb(155, 33, 140);
/* oklch */ color: oklch(48.9% 0.193 333.8);
Tailwind
colors: {
  custom: {
    50: '#bc6bae',
    500: '#9b218c',
    950: '#000000',
  },
}
SCSS
$custom: #9b218c;
$custom-light: #bc6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#9b218c",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 307.377,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48901,
    "c": 0.19266,
    "h": 333.8
  },
  "luminance": 0.0995
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B218C

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

Preview Lab → · Contrast checker → · Palette generator →

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