#9B18B4#9B18B4

#9B18B4 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.9% C 0.230 H 320.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#9B18B4
RGBrgb(155, 24, 180)
HSLhsl(290, 76%, 40%)
HSVhsv(290, 87%, 71%)
CMYKcmyk(13.9%, 86.7%, 0%, 29.4%)
CIE-LABlab(39.44, 68.40, -52.40)
CIE-LCHlch(39.44, 86.16, 322.54°)
OKLaboklab(50.88% 0.1762 -0.1473)
OKLCHoklch(50.88% 0.23 320.1)
XYZxyz(22.0814, 10.9183, 44.1155)
Luminance0.1092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B18B4 #31B418
analogous
#4D18B4 #9B18B4 #B4187F
triadic
#9B18B4 #B49B18 #18B49B
tetradic
#9B18B4 #B44D18 #31B418 #187FB4
square
#9B18B4 #B44D18 #31B418 #187FB4
split-complementary
#9B18B4 #7FB418 #18B44D
monochromatic
#3E0A48 #6D117E #9B18B4 #C427E2 #D35DE9

Accessibility & contrast

On white

6.60
#9B18B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9B18B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B18B4
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B18B4#FFFFFF#000000##FFFFFF
##9B18B41.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#2B61B1
Tritanopia (blue-blind)
#9B3F6B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9b18b4;
/* rgb */ color: rgb(155, 24, 180);
/* oklch */ color: oklch(50.9% 0.230 320.1);
Tailwind
colors: {
  custom: {
    50: '#bd6acb',
    500: '#9b18b4',
    950: '#000000',
  },
}
SCSS
$custom: #9b18b4;
$custom-light: #bd6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b18b4",
  "rgb": {
    "r": 155,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 290.385,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.50878,
    "c": 0.22968,
    "h": 320.1
  },
  "luminance": 0.10917
}

Semantic roles & 50–950 ramp

primary
#9B18B4
secondary
#6DCD5B
accent
#F33553
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#130813
muted
#827A82

Preview Lab

Preview with #9B18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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