#9747D8#9747D8

#9747D8 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.9% C 0.214 H 306.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9747D8
RGBrgb(151, 71, 216)
HSLhsl(273, 65%, 56%)
HSVhsv(273, 67%, 85%)
CMYKcmyk(30.1%, 67.1%, 0%, 15.3%)
CIE-LABlab(47.03, 58.64, -61.10)
CIE-LCHlch(47.03, 84.69, 313.82°)
OKLaboklab(56.91% 0.1257 -0.1733)
OKLCHoklch(56.91% 0.214 306)
XYZxyz(27.4077, 16.0439, 66.6053)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9747D8 #88D847
analogous
#4F47D8 #9747D8 #D847D1
triadic
#9747D8 #D89747 #47D897
tetradic
#9747D8 #D84F47 #88D847 #47D1D8
square
#9747D8 #D84F47 #88D847 #47D1D8
split-complementary
#9747D8 #D1D847 #47D84F
monochromatic
#581D88 #7827BA #9747D8 #B479E3 #D0ACED

Accessibility & contrast

On white

4.99
#9747D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9747D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9747D8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9747D8#FFFFFF#000000##FFFFFF
##9747D81.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#1C70D5
Tritanopia (blue-blind)
#8C678A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9747d8;
/* rgb */ color: rgb(151, 71, 216);
/* oklch */ color: oklch(56.9% 0.214 306.0);
Tailwind
colors: {
  custom: {
    50: '#ba80e5',
    500: '#9747d8',
    950: '#000000',
  },
}
SCSS
$custom: #9747d8;
$custom-light: #ba80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9747d8",
  "rgb": {
    "r": 151,
    "g": 71,
    "b": 216
  },
  "hsl": {
    "h": 273.103,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56913,
    "c": 0.21411,
    "h": 306
  },
  "luminance": 0.16044
}

Semantic roles & 50–950 ramp

primary
#9747D8
secondary
#BADBA0
accent
#E8408B
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9747D8

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

Preview Lab → · Contrast checker → · Palette generator →

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