#9740C4#9740C4

#9740C4 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.203 H 311.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9740C4
RGBrgb(151, 64, 196)
HSLhsl(280, 53%, 51%)
HSVhsv(280, 67%, 77%)
CMYKcmyk(23%, 67.3%, 0%, 23.1%)
CIE-LABlab(44.56, 57.41, -53.56)
CIE-LCHlch(44.56, 78.51, 316.98°)
OKLaboklab(54.72% 0.1352 -0.1511)
OKLCHoklch(54.72% 0.203 311.8)
XYZxyz(24.5579, 14.2323, 53.6673)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740C4 #6DC440
analogous
#5540C4 #9740C4 #C440AF
triadic
#9740C4 #C49740 #40C497
tetradic
#9740C4 #C45540 #6DC440 #40AFC4
square
#9740C4 #C45540 #6DC440 #40AFC4
split-complementary
#9740C4 #AFC440 #40C455
monochromatic
#502069 #742F98 #9740C4 #B06FD2 #CA9EE1

Accessibility & contrast

On white

5.46
#9740C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9740C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740C4
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740C4#FFFFFF#000000##FFFFFF
##9740C41.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#326BC1
Tritanopia (blue-blind)
#925B7D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9740c4;
/* rgb */ color: rgb(151, 64, 196);
/* oklch */ color: oklch(54.7% 0.203 311.8);
Tailwind
colors: {
  custom: {
    50: '#b97bd7',
    500: '#9740c4',
    950: '#000000',
  },
}
SCSS
$custom: #9740c4;
$custom-light: #b97bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9740c4",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 279.545,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54724,
    "c": 0.2028,
    "h": 311.8
  },
  "luminance": 0.14232
}

Semantic roles & 50–950 ramp

primary
#9740C4
secondary
#A7CD93
accent
#DC4C7D
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9740C4

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

Preview Lab → · Contrast checker → · Palette generator →

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