#9742A2#9742A2

#9742A2 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 52.9% C 0.167 H 322.9°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9742A2
RGBrgb(151, 66, 162)
HSLhsl(293, 42%, 45%)
HSVhsv(293, 59%, 64%)
CMYKcmyk(6.8%, 59.3%, 0%, 36.5%)
CIE-LABlab(42.89, 49.53, -36.22)
CIE-LCHlch(42.89, 61.37, 323.82°)
OKLaboklab(52.87% 0.1331 -0.1005)
OKLCHoklch(52.87% 0.167 322.9)
XYZxyz(21.2317, 13.0855, 35.5828)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742A2 #4DA242
analogous
#6742A2 #9742A2 #A2427D
triadic
#9742A2 #A29742 #42A297
tetradic
#9742A2 #A26742 #4DA242 #427DA2
square
#9742A2 #A26742 #4DA242 #427DA2
split-complementary
#9742A2 #7DA242 #42A267
monochromatic
#461F4B #6E3077 #9742A2 #B462BF #C98ED1

Accessibility & contrast

On white

5.81
#9742A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#9742A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742A2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742A2#FFFFFF#000000##FFFFFF
##9742A21.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#4F699F
Tritanopia (blue-blind)
#99506C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9742a2;
/* rgb */ color: rgb(151, 66, 162);
/* oklch */ color: oklch(52.9% 0.167 322.9);
Tailwind
colors: {
  custom: {
    50: '#b87bbe',
    500: '#9742a2',
    950: '#000000',
  },
}
SCSS
$custom: #9742a2;
$custom-light: #b87bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9742a2",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 293.125,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52869,
    "c": 0.16676,
    "h": 322.9
  },
  "luminance": 0.13084
}

Semantic roles & 50–950 ramp

primary
#9742A2
secondary
#8ABC84
accent
#D25664
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #9742A2

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

Preview Lab → · Contrast checker → · Palette generator →

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