#9740A2#9740A2

#9740A2 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 52.6% C 0.170 H 323.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9740A2
RGBrgb(151, 64, 162)
HSLhsl(293, 43%, 44%)
HSVhsv(293, 60%, 64%)
CMYKcmyk(6.8%, 60.5%, 0%, 36.5%)
CIE-LABlab(42.55, 50.48, -36.77)
CIE-LCHlch(42.55, 62.45, 323.93°)
OKLaboklab(52.62% 0.1357 -0.1021)
OKLCHoklch(52.62% 0.17 323)
XYZxyz(21.1168, 12.8558, 35.5445)
Luminance0.1285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740A2 #4BA240
analogous
#6640A2 #9740A2 #A2407C
triadic
#9740A2 #A29740 #40A297
tetradic
#9740A2 #A26640 #4BA240 #407CA2
square
#9740A2 #A26640 #4BA240 #407CA2
split-complementary
#9740A2 #7CA240 #40A266
monochromatic
#451D4A #6E2F76 #9740A2 #B55FC0 #C98BD1

Accessibility & contrast

On white

5.88
#9740A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9740A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740A2
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740A2#FFFFFF#000000##FFFFFF
##9740A21.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#4E689F
Tritanopia (blue-blind)
#994E6B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9740a2;
/* rgb */ color: rgb(151, 64, 162);
/* oklch */ color: oklch(52.6% 0.170 323.0);
Tailwind
colors: {
  custom: {
    50: '#b87abe',
    500: '#9740a2',
    950: '#000000',
  },
}
SCSS
$custom: #9740a2;
$custom-light: #b87abe;
$custom-dark: #000000;
JSON
{
  "hex": "#9740a2",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 293.265,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52616,
    "c": 0.16978,
    "h": 323
  },
  "luminance": 0.12855
}

Semantic roles & 50–950 ramp

primary
#9740A2
secondary
#88BC82
accent
#D35563
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #9740A2

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

Preview Lab → · Contrast checker → · Palette generator →

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