#9740B4#9740B4

#9740B4 is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.7% C 0.187 H 316.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9740B4
RGBrgb(151, 64, 180)
HSLhsl(285, 48%, 48%)
HSVhsv(285, 64%, 71%)
CMYKcmyk(16.1%, 64.4%, 0%, 29.4%)
CIE-LABlab(43.57, 54.06, -45.81)
CIE-LCHlch(43.57, 70.86, 319.72°)
OKLaboklab(53.69% 0.136 -0.1284)
OKLCHoklch(53.69% 0.187 316.7)
XYZxyz(22.8329, 13.5423, 44.5823)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740B4 #5DB440
analogous
#5D40B4 #9740B4 #B44097
triadic
#9740B4 #B49740 #40B497
tetradic
#9740B4 #B45D40 #5DB440 #4097B4
square
#9740B4 #B45D40 #5DB440 #4097B4
split-complementary
#9740B4 #97B440 #40B45D
monochromatic
#4B205A #713087 #9740B4 #B168C9 #C895D9

Accessibility & contrast

On white

5.66
#9740B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9740B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740B4
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740B4#FFFFFF#000000##FFFFFF
##9740B41.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1562B8
Deuteranopia (green-blind)
#426AB1
Tritanopia (blue-blind)
#965574
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9740b4;
/* rgb */ color: rgb(151, 64, 180);
/* oklch */ color: oklch(53.7% 0.187 316.7);
Tailwind
colors: {
  custom: {
    50: '#b97bcb',
    500: '#9740b4',
    950: '#000000',
  },
}
SCSS
$custom: #9740b4;
$custom-light: #b97bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#9740b4",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 285,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53689,
    "c": 0.18707,
    "h": 316.7
  },
  "luminance": 0.13541
}

Semantic roles & 50–950 ramp

primary
#9740B4
secondary
#99C58B
accent
#D75172
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9740B4

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

Preview Lab → · Contrast checker → · Palette generator →

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