#9740CD#9740CD

#9740CD is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.3% C 0.212 H 309.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9740CD
RGBrgb(151, 64, 205)
HSLhsl(277, 59%, 53%)
HSVhsv(277, 69%, 80%)
CMYKcmyk(26.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(45.16, 59.35, -57.82)
CIE-LCHlch(45.16, 82.86, 315.75°)
OKLaboklab(55.34% 0.1344 -0.1636)
OKLCHoklch(55.34% 0.212 309.4)
XYZxyz(25.6131, 14.6544, 59.2251)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740CD #76CD40
analogous
#5040CD #9740CD #CD40BD
triadic
#9740CD #CD9740 #40CD97
tetradic
#9740CD #CD5040 #76CD40 #40BDCD
square
#9740CD #CD5040 #76CD40 #40BDCD
split-complementary
#9740CD #BDCD40 #40CD50
monochromatic
#531E74 #762BA5 #9740CD #B171DA #CCA1E6

Accessibility & contrast

On white

5.34
#9740CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9740CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740CD
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740CD#FFFFFF#000000##FFFFFF
##9740CD1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#256CCA
Tritanopia (blue-blind)
#8F5F82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9740cd;
/* rgb */ color: rgb(151, 64, 205);
/* oklch */ color: oklch(55.3% 0.212 309.4);
Tailwind
colors: {
  custom: {
    50: '#ba7bdd',
    500: '#9740cd',
    950: '#000000',
  },
}
SCSS
$custom: #9740cd;
$custom-light: #ba7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9740cd",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 277.021,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55337,
    "c": 0.21172,
    "h": 309.4
  },
  "luminance": 0.14654
}

Semantic roles & 50–950 ramp

primary
#9740CD
secondary
#ADD396
accent
#E24682
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9740CD

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

Preview Lab → · Contrast checker → · Palette generator →

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