#9747CC#9747CC

#9747CC is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.1% C 0.202 H 309.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9747CC
RGBrgb(151, 71, 204)
HSLhsl(276, 57%, 54%)
HSVhsv(276, 65%, 80%)
CMYKcmyk(26%, 65.2%, 0%, 20%)
CIE-LABlab(46.24, 55.94, -55.50)
CIE-LCHlch(46.24, 78.80, 315.23°)
OKLaboklab(56.09% 0.1268 -0.1568)
OKLCHoklch(56.09% 0.202 309)
XYZxyz(25.9126, 15.4459, 58.7313)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9747CC #7CCC47
analogous
#5547CC #9747CC #CC47BF
triadic
#9747CC #CC9747 #47CC97
tetradic
#9747CC #CC5547 #7CCC47 #47BFCC
square
#9747CC #CC5547 #7CCC47 #47BFCC
split-complementary
#9747CC #BFCC47 #47CC55
monochromatic
#552177 #772EA7 #9747CC #B277D9 #CDA7E7

Accessibility & contrast

On white

5.14
#9747CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9747CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9747CC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9747CC#FFFFFF#000000##FFFFFF
##9747CC1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#316FC9
Tritanopia (blue-blind)
#8F6383
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9747cc;
/* rgb */ color: rgb(151, 71, 204);
/* oklch */ color: oklch(56.1% 0.202 309.0);
Tailwind
colors: {
  custom: {
    50: '#ba7fdc',
    500: '#9747cc',
    950: '#000000',
  },
}
SCSS
$custom: #9747cc;
$custom-light: #ba7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9747cc",
  "rgb": {
    "r": 151,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 276.09,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56092,
    "c": 0.20169,
    "h": 309
  },
  "luminance": 0.15445
}

Semantic roles & 50–950 ramp

primary
#9747CC
secondary
#B2D49B
accent
#E04884
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9747CC

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

Preview Lab → · Contrast checker → · Palette generator →

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