#9742AB#9742AB

#9742AB is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.4% C 0.175 H 319.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9742AB
RGBrgb(151, 66, 171)
HSLhsl(289, 44%, 46%)
HSVhsv(289, 61%, 67%)
CMYKcmyk(11.7%, 61.4%, 0%, 32.9%)
CIE-LABlab(43.38, 51.31, -40.79)
CIE-LCHlch(43.38, 65.55, 321.51°)
OKLaboklab(53.39% 0.1335 -0.1138)
OKLCHoklch(53.39% 0.175 319.6)
XYZxyz(22.0605, 13.4170, 39.9479)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742AB #56AB42
analogous
#6342AB #9742AB #AB428B
triadic
#9742AB #AB9742 #42AB97
tetradic
#9742AB #AB6342 #56AB42 #428BAB
square
#9742AB #AB6342 #56AB42 #428BAB
split-complementary
#9742AB #8BAB42 #42AB63
monochromatic
#492053 #70317F #9742AB #B266C4 #C892D5

Accessibility & contrast

On white

5.70
#9742AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9742AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742AB
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742AB#FFFFFF#000000##FFFFFF
##9742AB1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#4A69A8
Tritanopia (blue-blind)
#975370
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9742ab;
/* rgb */ color: rgb(151, 66, 171);
/* oklch */ color: oklch(53.4% 0.175 319.6);
Tailwind
colors: {
  custom: {
    50: '#b87cc4',
    500: '#9742ab',
    950: '#000000',
  },
}
SCSS
$custom: #9742ab;
$custom-light: #b87cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9742ab",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 288.571,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53387,
    "c": 0.17543,
    "h": 319.6
  },
  "luminance": 0.13416
}

Semantic roles & 50–950 ramp

primary
#9742AB
secondary
#93C088
accent
#D4546C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9742AB

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

Preview Lab → · Contrast checker → · Palette generator →

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