#9747CB#9747CB

#9747CB is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.201 H 309.2°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9747CB
RGBrgb(151, 71, 203)
HSLhsl(276, 56%, 54%)
HSVhsv(276, 65%, 80%)
CMYKcmyk(25.6%, 65%, 0%, 20.4%)
CIE-LABlab(46.17, 55.72, -55.02)
CIE-LCHlch(46.17, 78.31, 315.36°)
OKLaboklab(56.03% 0.1269 -0.1554)
OKLCHoklch(56.03% 0.201 309.2)
XYZxyz(25.7931, 15.3980, 58.1017)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9747CB #7BCB47
analogous
#5547CB #9747CB #CB47BD
triadic
#9747CB #CB9747 #47CB97
tetradic
#9747CB #CB5547 #7BCB47 #47BDCB
square
#9747CB #CB5547 #7BCB47 #47BDCB
split-complementary
#9747CB #BDCB47 #47CB55
monochromatic
#552176 #772FA6 #9747CB #B277D8 #CDA6E6

Accessibility & contrast

On white

5.15
#9747CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9747CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9747CB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9747CB#FFFFFF#000000##FFFFFF
##9747CB1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#326EC8
Tritanopia (blue-blind)
#906283
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9747cb;
/* rgb */ color: rgb(151, 71, 203);
/* oklch */ color: oklch(56.0% 0.201 309.2);
Tailwind
colors: {
  custom: {
    50: '#ba7fdb',
    500: '#9747cb',
    950: '#000000',
  },
}
SCSS
$custom: #9747cb;
$custom-light: #ba7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9747cb",
  "rgb": {
    "r": 151,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 276.364,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56025,
    "c": 0.20066,
    "h": 309.2
  },
  "luminance": 0.15398
}

Semantic roles & 50–950 ramp

primary
#9747CB
secondary
#B1D39B
accent
#DF4984
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9747CB

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

Preview Lab → · Contrast checker → · Palette generator →

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