#9740BA#9740BA

#9740BA is a mid, vivid purple. Relative luminance 0.138; OKLCH L 54.1% C 0.193 H 314.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9740BA
RGBrgb(151, 64, 186)
HSLhsl(283, 49%, 49%)
HSVhsv(283, 66%, 73%)
CMYKcmyk(18.8%, 65.6%, 0%, 27.1%)
CIE-LABlab(43.93, 55.30, -48.75)
CIE-LCHlch(43.93, 73.71, 318.60°)
OKLaboklab(54.07% 0.1359 -0.137)
OKLCHoklch(54.07% 0.193 314.8)
XYZxyz(23.4574, 13.7921, 47.8713)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740BA #63BA40
analogous
#5A40BA #9740BA #BA40A0
triadic
#9740BA #BA9740 #40BA97
tetradic
#9740BA #BA5A40 #63BA40 #40A0BA
square
#9740BA #BA5A40 #63BA40 #40A0BA
split-complementary
#9740BA #A0BA40 #40BA5A
monochromatic
#4D215F #72308C #9740BA #B06BCC #C999DC

Accessibility & contrast

On white

5.59
#9740BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#9740BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740BA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740BA#FFFFFF#000000##FFFFFF
##9740BA1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0263BE
Deuteranopia (green-blind)
#3C6AB7
Tritanopia (blue-blind)
#945777
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9740ba;
/* rgb */ color: rgb(151, 64, 186);
/* oklch */ color: oklch(54.1% 0.193 314.8);
Tailwind
colors: {
  custom: {
    50: '#b97bcf',
    500: '#9740ba',
    950: '#000000',
  },
}
SCSS
$custom: #9740ba;
$custom-light: #b97bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9740ba",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 282.787,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54069,
    "c": 0.19295,
    "h": 314.8
  },
  "luminance": 0.13791
}

Semantic roles & 50–950 ramp

primary
#9740BA
secondary
#9FC88E
accent
#D84F77
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9740BA

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

Preview Lab → · Contrast checker → · Palette generator →

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