#9742AE#9742AE

#9742AE is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.6% C 0.178 H 318.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9742AE
RGBrgb(151, 66, 174)
HSLhsl(287, 45%, 47%)
HSVhsv(287, 62%, 68%)
CMYKcmyk(13.2%, 62.1%, 0%, 31.8%)
CIE-LABlab(43.56, 51.91, -42.29)
CIE-LCHlch(43.56, 66.96, 320.83°)
OKLaboklab(53.57% 0.1336 -0.1181)
OKLCHoklch(53.57% 0.178 318.5)
XYZxyz(22.3497, 13.5327, 41.4710)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742AE #59AE42
analogous
#6142AE #9742AE #AE428F
triadic
#9742AE #AE9742 #42AE97
tetradic
#9742AE #AE6142 #59AE42 #428FAE
square
#9742AE #AE6142 #59AE42 #428FAE
split-complementary
#9742AE #8FAE42 #42AE61
monochromatic
#4A2055 #703182 #9742AE #B268C6 #C894D6

Accessibility & contrast

On white

5.67
#9742AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9742AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742AE
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742AE#FFFFFF#000000##FFFFFF
##9742AE1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2461B1
Deuteranopia (green-blind)
#486AAB
Tritanopia (blue-blind)
#975472
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9742ae;
/* rgb */ color: rgb(151, 66, 174);
/* oklch */ color: oklch(53.6% 0.178 318.5);
Tailwind
colors: {
  custom: {
    50: '#b87cc7',
    500: '#9742ae',
    950: '#000000',
  },
}
SCSS
$custom: #9742ae;
$custom-light: #b87cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9742ae",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 287.222,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53566,
    "c": 0.17836,
    "h": 318.5
  },
  "luminance": 0.13532
}

Semantic roles & 50–950 ramp

primary
#9742AE
secondary
#96C28A
accent
#D5536F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9742AE

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

Preview Lab → · Contrast checker → · Palette generator →

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