#9742B7#9742B7

#9742B7 is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.1% C 0.187 H 315.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9742B7
RGBrgb(151, 66, 183)
HSLhsl(284, 47%, 49%)
HSVhsv(284, 64%, 72%)
CMYKcmyk(17.5%, 63.9%, 0%, 28.2%)
CIE-LABlab(44.08, 53.76, -46.75)
CIE-LCHlch(44.08, 71.24, 318.99°)
OKLaboklab(54.12% 0.1336 -0.1312)
OKLCHoklch(54.12% 0.187 315.5)
XYZxyz(23.2566, 13.8954, 46.2476)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742B7 #62B742
analogous
#5D42B7 #9742B7 #B7429D
triadic
#9742B7 #B79742 #42B797
tetradic
#9742B7 #B75D42 #62B742 #429DB7
square
#9742B7 #B75D42 #62B742 #429DB7
split-complementary
#9742B7 #9DB742 #42B75D
monochromatic
#4D225D #72328A #9742B7 #B06CCA #C899DA

Accessibility & contrast

On white

5.56
#9742B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9742B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742B7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742B7#FFFFFF#000000##FFFFFF
##9742B71.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1563BB
Deuteranopia (green-blind)
#416BB4
Tritanopia (blue-blind)
#955777
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9742b7;
/* rgb */ color: rgb(151, 66, 183);
/* oklch */ color: oklch(54.1% 0.187 315.5);
Tailwind
colors: {
  custom: {
    50: '#b97ccd',
    500: '#9742b7',
    950: '#000000',
  },
}
SCSS
$custom: #9742b7;
$custom-light: #b97ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#9742b7",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 283.59,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54118,
    "c": 0.18723,
    "h": 315.5
  },
  "luminance": 0.13895
}

Semantic roles & 50–950 ramp

primary
#9742B7
secondary
#9EC68F
accent
#D75176
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A13
muted
#817C82

Preview Lab

Preview with #9742B7

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

Preview Lab → · Contrast checker → · Palette generator →

#9742B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva