#9740D6#9740D6

#9740D6 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.221 H 307.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9740D6
RGBrgb(151, 64, 214)
HSLhsl(275, 65%, 55%)
HSVhsv(275, 70%, 84%)
CMYKcmyk(29.4%, 70.1%, 0%, 16.1%)
CIE-LABlab(45.77, 61.33, -61.99)
CIE-LCHlch(45.77, 87.20, 314.69°)
OKLaboklab(55.97% 0.1332 -0.1759)
OKLCHoklch(55.97% 0.221 307.1)
XYZxyz(26.7309, 15.1015, 65.1120)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D6 #7FD640
analogous
#4C40D6 #9740D6 #D640CA
triadic
#9740D6 #D69740 #40D697
tetradic
#9740D6 #D64C40 #7FD640 #40CAD6
square
#9740D6 #D64C40 #7FD640 #40CAD6
split-complementary
#9740D6 #CAD640 #40D64C
monochromatic
#561B80 #7826B2 #9740D6 #B272E1 #CEA5EC

Accessibility & contrast

On white

5.22
#9740D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9740D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D6
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D6#FFFFFF#000000##FFFFFF
##9740D61.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#0E6DD3
Tritanopia (blue-blind)
#8D6287
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9740d6;
/* rgb */ color: rgb(151, 64, 214);
/* oklch */ color: oklch(56.0% 0.221 307.1);
Tailwind
colors: {
  custom: {
    50: '#bb7ce3',
    500: '#9740d6',
    950: '#000000',
  },
}
SCSS
$custom: #9740d6;
$custom-light: #bb7ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d6",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 274.8,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55971,
    "c": 0.22064,
    "h": 307.1
  },
  "luminance": 0.15101
}

Semantic roles & 50–950 ramp

primary
#9740D6
secondary
#B4D999
accent
#E84087
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9740D6

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

Preview Lab → · Contrast checker → · Palette generator →

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