#9747E1#9747E1

#9747E1 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.6% C 0.223 H 303.9°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9747E1
RGBrgb(151, 71, 225)
HSLhsl(271, 72%, 58%)
HSVhsv(271, 68%, 88%)
CMYKcmyk(32.9%, 68.4%, 0%, 11.8%)
CIE-LABlab(47.65, 60.70, -65.22)
CIE-LCHlch(47.65, 89.10, 312.94°)
OKLaboklab(57.55% 0.1246 -0.1854)
OKLCHoklch(57.55% 0.223 303.9)
XYZxyz(28.6032, 16.5221, 72.9018)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9747E1 #91E147
analogous
#4A47E1 #9747E1 #E147DE
triadic
#9747E1 #E19747 #47E197
tetradic
#9747E1 #E14A47 #91E147 #47DEE1
square
#9747E1 #E14A47 #91E147 #47DEE1
split-complementary
#9747E1 #DEE147 #47E14A
monochromatic
#591895 #7921CA #9747E1 #B57CEA #D2B0F2

Accessibility & contrast

On white

4.88
#9747E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#9747E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9747E1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9747E1#FFFFFF#000000##FFFFFF
##9747E11.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE6
Deuteranopia (green-blind)
#0071DE
Tritanopia (blue-blind)
#896A8F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9747e1;
/* rgb */ color: rgb(151, 71, 225);
/* oklch */ color: oklch(57.6% 0.223 303.9);
Tailwind
colors: {
  custom: {
    50: '#bb80eb',
    500: '#9747e1',
    950: '#000000',
  },
}
SCSS
$custom: #9747e1;
$custom-light: #bb80eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9747e1",
  "rgb": {
    "r": 151,
    "g": 71,
    "b": 225
  },
  "hsl": {
    "h": 271.169,
    "s": 71.963,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57553,
    "c": 0.2234,
    "h": 303.9
  },
  "luminance": 0.16522
}

Semantic roles & 50–950 ramp

primary
#9747E1
secondary
#C1E1A3
accent
#EF3990
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9747E1

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

Preview Lab → · Contrast checker → · Palette generator →

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