#9740C7#9740C7

#9740C7 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.9% C 0.206 H 311.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9740C7
RGBrgb(151, 64, 199)
HSLhsl(279, 55%, 52%)
HSVhsv(279, 68%, 78%)
CMYKcmyk(24.1%, 67.8%, 0%, 22%)
CIE-LABlab(44.76, 58.05, -54.99)
CIE-LCHlch(44.76, 79.96, 316.55°)
OKLaboklab(54.93% 0.135 -0.1553)
OKLCHoklch(54.93% 0.206 311)
XYZxyz(24.9028, 14.3702, 55.4836)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740C7 #70C740
analogous
#5440C7 #9740C7 #C740B3
triadic
#9740C7 #C79740 #40C797
tetradic
#9740C7 #C75440 #70C740 #40B3C7
square
#9740C7 #C75440 #70C740 #40B3C7
split-complementary
#9740C7 #B3C740 #40C754
monochromatic
#51206D #752E9C #9740C7 #B16FD5 #CB9FE3

Accessibility & contrast

On white

5.42
#9740C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#9740C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740C7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740C7#FFFFFF#000000##FFFFFF
##9740C71.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CB
Deuteranopia (green-blind)
#2E6BC4
Tritanopia (blue-blind)
#915C7F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9740c7;
/* rgb */ color: rgb(151, 64, 199);
/* oklch */ color: oklch(54.9% 0.206 311.0);
Tailwind
colors: {
  custom: {
    50: '#ba7bd9',
    500: '#9740c7',
    950: '#000000',
  },
}
SCSS
$custom: #9740c7;
$custom-light: #ba7bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9740c7",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 278.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54926,
    "c": 0.20578,
    "h": 311
  },
  "luminance": 0.1437
}

Semantic roles & 50–950 ramp

primary
#9740C7
secondary
#A9CF94
accent
#DE4A7E
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A15
muted
#817C83

Preview Lab

Preview with #9740C7

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

Preview Lab → · Contrast checker → · Palette generator →

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