#9740CC#9740CC

#9740CC is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.3% C 0.211 H 309.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9740CC
RGBrgb(151, 64, 204)
HSLhsl(277, 58%, 53%)
HSVhsv(277, 69%, 80%)
CMYKcmyk(26%, 68.6%, 0%, 20%)
CIE-LABlab(45.09, 59.13, -57.35)
CIE-LCHlch(45.09, 82.37, 315.88°)
OKLaboklab(55.27% 0.1345 -0.1622)
OKLCHoklch(55.27% 0.211 309.7)
XYZxyz(25.4928, 14.6062, 58.5914)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740CC #75CC40
analogous
#5140CC #9740CC #CC40BB
triadic
#9740CC #CC9740 #40CC97
tetradic
#9740CC #CC5140 #75CC40 #40BBCC
square
#9740CC #CC5140 #75CC40 #40BBCC
split-complementary
#9740CC #BBCC40 #40CC51
monochromatic
#531F73 #762CA3 #9740CC #B170D9 #CCA1E6

Accessibility & contrast

On white

5.36
#9740CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9740CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740CC
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740CC#FFFFFF#000000##FFFFFF
##9740CC1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#276CC9
Tritanopia (blue-blind)
#8F5E81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9740cc;
/* rgb */ color: rgb(151, 64, 204);
/* oklch */ color: oklch(55.3% 0.211 309.7);
Tailwind
colors: {
  custom: {
    50: '#ba7bdc',
    500: '#9740cc',
    950: '#000000',
  },
}
SCSS
$custom: #9740cc;
$custom-light: #ba7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9740cc",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 277.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55268,
    "c": 0.21072,
    "h": 309.7
  },
  "luminance": 0.14606
}

Semantic roles & 50–950 ramp

primary
#9740CC
secondary
#ADD295
accent
#E14781
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9740CC

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

Preview Lab → · Contrast checker → · Palette generator →

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