#9747D7#9747D7

#9747D7 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.8% C 0.213 H 306.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9747D7
RGBrgb(151, 71, 215)
HSLhsl(273, 64%, 56%)
HSVhsv(273, 67%, 84%)
CMYKcmyk(29.8%, 67%, 0%, 15.7%)
CIE-LABlab(46.96, 58.41, -60.64)
CIE-LCHlch(46.96, 84.20, 313.93°)
OKLaboklab(56.84% 0.1258 -0.1719)
OKLCHoklch(56.84% 0.213 306.2)
XYZxyz(27.2788, 15.9923, 65.9266)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9747D7 #87D747
analogous
#4F47D7 #9747D7 #D747CF
triadic
#9747D7 #D79747 #47D797
tetradic
#9747D7 #D74F47 #87D747 #47CFD7
square
#9747D7 #D74F47 #87D747 #47CFD7
split-complementary
#9747D7 #CFD747 #47D74F
monochromatic
#581D86 #7828B9 #9747D7 #B379E2 #D0ACED

Accessibility & contrast

On white

5.00
#9747D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9747D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9747D7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9747D7#FFFFFF#000000##FFFFFF
##9747D71.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#1E70D4
Tritanopia (blue-blind)
#8C6789
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9747d7;
/* rgb */ color: rgb(151, 71, 215);
/* oklch */ color: oklch(56.8% 0.213 306.2);
Tailwind
colors: {
  custom: {
    50: '#ba80e4',
    500: '#9747d7',
    950: '#000000',
  },
}
SCSS
$custom: #9747d7;
$custom-light: #ba80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9747d7",
  "rgb": {
    "r": 151,
    "g": 71,
    "b": 215
  },
  "hsl": {
    "h": 273.333,
    "s": 64.286,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56844,
    "c": 0.21307,
    "h": 306.2
  },
  "luminance": 0.15992
}

Semantic roles & 50–950 ramp

primary
#9747D7
secondary
#BADB9F
accent
#E7418B
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9747D7

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

Preview Lab → · Contrast checker → · Palette generator →

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