#9747D5#9747D5

#9747D5 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.7% C 0.211 H 306.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9747D5
RGBrgb(151, 71, 213)
HSLhsl(274, 63%, 56%)
HSVhsv(274, 67%, 84%)
CMYKcmyk(29.1%, 66.7%, 0%, 16.5%)
CIE-LABlab(46.83, 57.96, -59.71)
CIE-LCHlch(46.83, 83.22, 314.15°)
OKLaboklab(56.71% 0.126 -0.1692)
OKLCHoklch(56.71% 0.211 306.7)
XYZxyz(27.0234, 15.8902, 64.5814)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9747D5 #85D547
analogous
#5047D5 #9747D5 #D547CC
triadic
#9747D5 #D59747 #47D597
tetradic
#9747D5 #D55047 #85D547 #47CCD5
square
#9747D5 #D55047 #85D547 #47CCD5
split-complementary
#9747D5 #CCD547 #47D550
monochromatic
#571E84 #7829B5 #9747D5 #B379E0 #CFABEC

Accessibility & contrast

On white

5.03
#9747D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9747D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9747D5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9747D5#FFFFFF#000000##FFFFFF
##9747D51.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#2270D2
Tritanopia (blue-blind)
#8D6688
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9747d5;
/* rgb */ color: rgb(151, 71, 213);
/* oklch */ color: oklch(56.7% 0.211 306.7);
Tailwind
colors: {
  custom: {
    50: '#ba80e3',
    500: '#9747d5',
    950: '#000000',
  },
}
SCSS
$custom: #9747d5;
$custom-light: #ba80e3;
$custom-dark: #000000;
JSON
{
  "hex": "#9747d5",
  "rgb": {
    "r": 151,
    "g": 71,
    "b": 213
  },
  "hsl": {
    "h": 273.803,
    "s": 62.832,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56705,
    "c": 0.211,
    "h": 306.7
  },
  "luminance": 0.1589
}

Semantic roles & 50–950 ramp

primary
#9747D5
secondary
#B8D99E
accent
#E6428A
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #9747D5

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

Preview Lab → · Contrast checker → · Palette generator →

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