#9740DF#9740DF

#9740DF is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.230 H 305.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9740DF
RGBrgb(151, 64, 223)
HSLhsl(273, 71%, 56%)
HSVhsv(273, 71%, 87%)
CMYKcmyk(32.3%, 71.3%, 0%, 12.5%)
CIE-LABlab(46.41, 63.33, -66.10)
CIE-LCHlch(46.41, 91.54, 313.78°)
OKLaboklab(56.63% 0.1318 -0.188)
OKLCHoklch(56.63% 0.23 305)
XYZxyz(27.9122, 15.5740, 71.3333)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740DF #88DF40
analogous
#4840DF #9740DF #DF40D8
triadic
#9740DF #DF9740 #40DF97
tetradic
#9740DF #DF4840 #88DF40 #40D8DF
square
#9740DF #DF4840 #88DF40 #40D8DF
split-complementary
#9740DF #D8DF40 #40DF48
monochromatic
#58188D #7820C1 #9740DF #B474E8 #D0A9F1

Accessibility & contrast

On white

5.10
#9740DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9740DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740DF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740DF#FFFFFF#000000##FFFFFF
##9740DF1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE4
Deuteranopia (green-blind)
#006EDC
Tritanopia (blue-blind)
#8A668C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9740df;
/* rgb */ color: rgb(151, 64, 223);
/* oklch */ color: oklch(56.6% 0.230 305.0);
Tailwind
colors: {
  custom: {
    50: '#bb7cea',
    500: '#9740df',
    950: '#000000',
  },
}
SCSS
$custom: #9740df;
$custom-light: #bb7cea;
$custom-dark: #000000;
JSON
{
  "hex": "#9740df",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 272.83,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56625,
    "c": 0.22958,
    "h": 305
  },
  "luminance": 0.15574
}

Semantic roles & 50–950 ramp

primary
#9740DF
secondary
#BADE9D
accent
#EE3A8B
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9740DF

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

Preview Lab → · Contrast checker → · Palette generator →

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