#9747D9#9747D9

#9747D9 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.0% C 0.215 H 305.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9747D9
RGBrgb(151, 71, 217)
HSLhsl(273, 66%, 56%)
HSVhsv(273, 67%, 85%)
CMYKcmyk(30.4%, 67.3%, 0%, 14.9%)
CIE-LABlab(47.10, 58.87, -61.56)
CIE-LCHlch(47.10, 85.18, 313.72°)
OKLaboklab(56.98% 0.1256 -0.1747)
OKLCHoklch(56.98% 0.215 305.7)
XYZxyz(27.5374, 16.0958, 67.2883)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9747D9 #89D947
analogous
#4E47D9 #9747D9 #D947D2
triadic
#9747D9 #D99747 #47D997
tetradic
#9747D9 #D94E47 #89D947 #47D2D9
square
#9747D9 #D94E47 #89D947 #47D2D9
split-complementary
#9747D9 #D2D947 #47D94E
monochromatic
#581C89 #7927BC #9747D9 #B47AE3 #D0ACEE

Accessibility & contrast

On white

4.98
#9747D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9747D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9747D9
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9747D9#FFFFFF#000000##FFFFFF
##9747D91.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#1970D6
Tritanopia (blue-blind)
#8B678A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9747d9;
/* rgb */ color: rgb(151, 71, 217);
/* oklch */ color: oklch(57.0% 0.215 305.7);
Tailwind
colors: {
  custom: {
    50: '#ba80e6',
    500: '#9747d9',
    950: '#000000',
  },
}
SCSS
$custom: #9747d9;
$custom-light: #ba80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9747d9",
  "rgb": {
    "r": 151,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 272.877,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.21514,
    "h": 305.7
  },
  "luminance": 0.16096
}

Semantic roles & 50–950 ramp

primary
#9747D9
secondary
#BBDCA0
accent
#E93F8C
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9747D9

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

Preview Lab → · Contrast checker → · Palette generator →

#9747D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva