#9740B1#9740B1

#9740B1 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.5% C 0.184 H 317.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9740B1
RGBrgb(151, 64, 177)
HSLhsl(286, 47%, 47%)
HSVhsv(286, 64%, 69%)
CMYKcmyk(14.7%, 63.8%, 0%, 30.6%)
CIE-LABlab(43.39, 53.45, -44.32)
CIE-LCHlch(43.39, 69.44, 320.33°)
OKLaboklab(53.5% 0.1361 -0.1241)
OKLCHoklch(53.5% 0.184 317.6)
XYZxyz(22.5306, 13.4213, 42.9902)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740B1 #5AB140
analogous
#5F40B1 #9740B1 #B14092
triadic
#9740B1 #B19740 #40B197
tetradic
#9740B1 #B15F40 #5AB140 #4092B1
square
#9740B1 #B15F40 #5AB140 #4092B1
split-complementary
#9740B1 #92B140 #40B15F
monochromatic
#4A1F57 #713084 #9740B1 #B166C8 #C893D8

Accessibility & contrast

On white

5.70
#9740B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9740B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740B1
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740B1#FFFFFF#000000##FFFFFF
##9740B11.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)
#1B61B4
Deuteranopia (green-blind)
#4469AE
Tritanopia (blue-blind)
#965473
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9740b1;
/* rgb */ color: rgb(151, 64, 177);
/* oklch */ color: oklch(53.5% 0.184 317.6);
Tailwind
colors: {
  custom: {
    50: '#b97bc9',
    500: '#9740b1',
    950: '#000000',
  },
}
SCSS
$custom: #9740b1;
$custom-light: #b97bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9740b1",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 286.195,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.53503,
    "c": 0.18415,
    "h": 317.6
  },
  "luminance": 0.1342
}

Semantic roles & 50–950 ramp

primary
#9740B1
secondary
#97C389
accent
#D75170
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9740B1

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

Preview Lab → · Contrast checker → · Palette generator →

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