#9D18B4#9D18B4

#9D18B4 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 51.2% C 0.230 H 320.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9D18B4
RGBrgb(157, 24, 180)
HSLhsl(291, 76%, 40%)
HSVhsv(291, 87%, 71%)
CMYKcmyk(12.8%, 86.7%, 0%, 29.4%)
CIE-LABlab(39.78, 68.74, -51.84)
CIE-LCHlch(39.78, 86.09, 322.97°)
OKLaboklab(51.18% 0.1785 -0.1456)
OKLCHoklch(51.18% 0.23 320.8)
XYZxyz(22.4685, 11.1179, 44.1337)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D18B4 #2FB418
analogous
#4F18B4 #9D18B4 #B4187D
triadic
#9D18B4 #B49D18 #18B49D
tetradic
#9D18B4 #B44F18 #2FB418 #187DB4
square
#9D18B4 #B44F18 #2FB418 #187DB4
split-complementary
#9D18B4 #7DB418 #18B44F
monochromatic
#3F0A48 #6E117E #9D18B4 #C727E2 #D55DE9

Accessibility & contrast

On white

6.51
#9D18B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9D18B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D18B4
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D18B4#FFFFFF#000000##FFFFFF
##9D18B41.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#2E62B1
Tritanopia (blue-blind)
#9E3F6B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d18b4;
/* rgb */ color: rgb(157, 24, 180);
/* oklch */ color: oklch(51.2% 0.230 320.8);
Tailwind
colors: {
  custom: {
    50: '#bf6bcb',
    500: '#9d18b4',
    950: '#000000',
  },
}
SCSS
$custom: #9d18b4;
$custom-light: #bf6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d18b4",
  "rgb": {
    "r": 157,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 291.154,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.51177,
    "c": 0.23038,
    "h": 320.8
  },
  "luminance": 0.11117
}

Semantic roles & 50–950 ramp

primary
#9D18B4
secondary
#6BCD5B
accent
#F33551
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#130813
muted
#827A82

Preview Lab

Preview with #9D18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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