#9742AC#9742AC

#9742AC is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.4% C 0.176 H 319.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9742AC
RGBrgb(151, 66, 172)
HSLhsl(288, 45%, 47%)
HSVhsv(288, 62%, 67%)
CMYKcmyk(12.2%, 61.6%, 0%, 32.5%)
CIE-LABlab(43.44, 51.51, -41.29)
CIE-LCHlch(43.44, 66.01, 321.28°)
OKLaboklab(53.45% 0.1336 -0.1152)
OKLCHoklch(53.45% 0.176 319.2)
XYZxyz(22.1561, 13.4553, 40.4518)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742AC #57AC42
analogous
#6242AC #9742AC #AC428C
triadic
#9742AC #AC9742 #42AC97
tetradic
#9742AC #AC6242 #57AC42 #428CAC
square
#9742AC #AC6242 #57AC42 #428CAC
split-complementary
#9742AC #8CAC42 #42AC62
monochromatic
#492054 #703180 #9742AC #B267C5 #C893D6

Accessibility & contrast

On white

5.69
#9742AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9742AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742AC
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742AC#FFFFFF#000000##FFFFFF
##9742AC1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2761AF
Deuteranopia (green-blind)
#496AA9
Tritanopia (blue-blind)
#975371
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9742ac;
/* rgb */ color: rgb(151, 66, 172);
/* oklch */ color: oklch(53.4% 0.176 319.2);
Tailwind
colors: {
  custom: {
    50: '#b87cc5',
    500: '#9742ac',
    950: '#000000',
  },
}
SCSS
$custom: #9742ac;
$custom-light: #b87cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#9742ac",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 288.113,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53447,
    "c": 0.17641,
    "h": 319.2
  },
  "luminance": 0.13454
}

Semantic roles & 50–950 ramp

primary
#9742AC
secondary
#94C189
accent
#D4546D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9742AC

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

Preview Lab → · Contrast checker → · Palette generator →

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