#9740D1#9740D1

#9740D1 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.6% C 0.216 H 308.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9740D1
RGBrgb(151, 64, 209)
HSLhsl(276, 61%, 54%)
HSVhsv(276, 69%, 82%)
CMYKcmyk(27.8%, 69.4%, 0%, 18%)
CIE-LABlab(45.43, 60.22, -59.68)
CIE-LCHlch(45.43, 84.79, 315.26°)
OKLaboklab(55.62% 0.1339 -0.1691)
OKLCHoklch(55.62% 0.216 308.4)
XYZxyz(26.1022, 14.8500, 61.8005)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D1 #7AD140
analogous
#4E40D1 #9740D1 #D140C2
triadic
#9740D1 #D19740 #40D197
tetradic
#9740D1 #D14E40 #7AD140 #40C2D1
square
#9740D1 #D14E40 #7AD140 #40C2D1
split-complementary
#9740D1 #C2D140 #40D14E
monochromatic
#551D79 #7729AB #9740D1 #B271DD #CDA3E9

Accessibility & contrast

On white

5.29
#9740D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9740D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D1
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D1#FFFFFF#000000##FFFFFF
##9740D11.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D5
Deuteranopia (green-blind)
#1D6CCE
Tritanopia (blue-blind)
#8E6084
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9740d1;
/* rgb */ color: rgb(151, 64, 209);
/* oklch */ color: oklch(55.6% 0.216 308.4);
Tailwind
colors: {
  custom: {
    50: '#ba7ce0',
    500: '#9740d1',
    950: '#000000',
  },
}
SCSS
$custom: #9740d1;
$custom-light: #ba7ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d1",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 276,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55616,
    "c": 0.21568,
    "h": 308.4
  },
  "luminance": 0.1485
}

Semantic roles & 50–950 ramp

primary
#9740D1
secondary
#B0D597
accent
#E44484
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9740D1

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

Preview Lab → · Contrast checker → · Palette generator →

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