#9740D9#9740D9

#9740D9 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.224 H 306.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9740D9
RGBrgb(151, 64, 217)
HSLhsl(274, 67%, 55%)
HSVhsv(274, 71%, 85%)
CMYKcmyk(30.4%, 70.5%, 0%, 14.9%)
CIE-LABlab(45.98, 61.99, -63.37)
CIE-LCHlch(45.98, 88.65, 314.37°)
OKLaboklab(56.19% 0.1328 -0.1799)
OKLCHoklch(56.19% 0.224 306.4)
XYZxyz(27.1176, 15.2561, 67.1483)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D9 #82D940
analogous
#4B40D9 #9740D9 #D940CE
triadic
#9740D9 #D99740 #40D997
tetradic
#9740D9 #D94B40 #82D940 #40CED9
square
#9740D9 #D94B40 #82D940 #40CED9
split-complementary
#9740D9 #CED940 #40D94B
monochromatic
#571A84 #7824B7 #9740D9 #B373E3 #CFA6ED

Accessibility & contrast

On white

5.18
#9740D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9740D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D9#FFFFFF#000000##FFFFFF
##9740D91.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#8C6388
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9740d9;
/* rgb */ color: rgb(151, 64, 217);
/* oklch */ color: oklch(56.2% 0.224 306.4);
Tailwind
colors: {
  custom: {
    50: '#bb7ce6',
    500: '#9740d9',
    950: '#000000',
  },
}
SCSS
$custom: #9740d9;
$custom-light: #bb7ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d9",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 274.118,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56187,
    "c": 0.22363,
    "h": 306.4
  },
  "luminance": 0.15256
}

Semantic roles & 50–950 ramp

primary
#9740D9
secondary
#B6DA9A
accent
#EA3E88
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9740D9

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

Preview Lab → · Contrast checker → · Palette generator →

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