#9740D7#9740D7

#9740D7 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.222 H 306.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9740D7
RGBrgb(151, 64, 215)
HSLhsl(275, 65%, 55%)
HSVhsv(275, 70%, 84%)
CMYKcmyk(29.8%, 70.2%, 0%, 15.7%)
CIE-LABlab(45.84, 61.55, -62.45)
CIE-LCHlch(45.84, 87.68, 314.58°)
OKLaboklab(56.04% 0.1331 -0.1772)
OKLCHoklch(56.04% 0.222 306.9)
XYZxyz(26.8590, 15.1527, 65.7866)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D7 #80D740
analogous
#4C40D7 #9740D7 #D740CB
triadic
#9740D7 #D79740 #40D797
tetradic
#9740D7 #D74C40 #80D740 #40CBD7
square
#9740D7 #D74C40 #80D740 #40CBD7
split-complementary
#9740D7 #CBD740 #40D74C
monochromatic
#561B81 #7826B4 #9740D7 #B373E2 #CEA5EC

Accessibility & contrast

On white

5.21
#9740D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9740D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D7#FFFFFF#000000##FFFFFF
##9740D71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#0A6DD4
Tritanopia (blue-blind)
#8C6387
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9740d7;
/* rgb */ color: rgb(151, 64, 215);
/* oklch */ color: oklch(56.0% 0.222 306.9);
Tailwind
colors: {
  custom: {
    50: '#bb7ce4',
    500: '#9740d7',
    950: '#000000',
  },
}
SCSS
$custom: #9740d7;
$custom-light: #bb7ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d7",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 274.57,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56043,
    "c": 0.22163,
    "h": 306.9
  },
  "luminance": 0.15152
}

Semantic roles & 50–950 ramp

primary
#9740D7
secondary
#B5D99A
accent
#E83F87
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9740D7

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

Preview Lab → · Contrast checker → · Palette generator →

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