#9740D3#9740D3

#9740D3 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.8% C 0.218 H 307.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9740D3
RGBrgb(151, 64, 211)
HSLhsl(276, 63%, 54%)
HSVhsv(276, 70%, 83%)
CMYKcmyk(28.4%, 69.7%, 0%, 17.3%)
CIE-LABlab(45.57, 60.66, -60.61)
CIE-LCHlch(45.57, 85.75, 315.03°)
OKLaboklab(55.76% 0.1336 -0.1718)
OKLCHoklch(55.76% 0.218 307.9)
XYZxyz(26.3513, 14.9496, 63.1128)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D3 #7CD340
analogous
#4E40D3 #9740D3 #D340C6
triadic
#9740D3 #D39740 #40D397
tetradic
#9740D3 #D34E40 #7CD340 #40C6D3
square
#9740D3 #D34E40 #7CD340 #40C6D3
split-complementary
#9740D3 #C6D340 #40D34E
monochromatic
#551D7C #7728AE #9740D3 #B272DE #CDA3EA

Accessibility & contrast

On white

5.26
#9740D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9740D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D3
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D3#FFFFFF#000000##FFFFFF
##9740D31.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#186DD0
Tritanopia (blue-blind)
#8D6185
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9740d3;
/* rgb */ color: rgb(151, 64, 211);
/* oklch */ color: oklch(55.8% 0.218 307.9);
Tailwind
colors: {
  custom: {
    50: '#ba7ce1',
    500: '#9740d3',
    950: '#000000',
  },
}
SCSS
$custom: #9740d3;
$custom-light: #ba7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d3",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 275.51,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55757,
    "c": 0.21767,
    "h": 307.9
  },
  "luminance": 0.14949
}

Semantic roles & 50–950 ramp

primary
#9740D3
secondary
#B2D798
accent
#E64285
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9740D3

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

Preview Lab → · Contrast checker → · Palette generator →

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