#9740DB#9740DB

#9740DB is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.226 H 306.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9740DB
RGBrgb(151, 64, 219)
HSLhsl(274, 68%, 55%)
HSVhsv(274, 71%, 86%)
CMYKcmyk(31.1%, 70.8%, 0%, 14.1%)
CIE-LABlab(46.12, 62.44, -64.28)
CIE-LCHlch(46.12, 89.61, 314.17°)
OKLaboklab(56.33% 0.1325 -0.1826)
OKLCHoklch(56.33% 0.226 306)
XYZxyz(27.3793, 15.3608, 68.5267)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740DB #84DB40
analogous
#4940DB #9740DB #DB40D2
triadic
#9740DB #DB9740 #40DB97
tetradic
#9740DB #DB4940 #84DB40 #40D2DB
square
#9740DB #DB4940 #84DB40 #40D2DB
split-complementary
#9740DB #D2DB40 #40DB49
monochromatic
#571987 #7823BB #9740DB #B373E5 #CFA7EE

Accessibility & contrast

On white

5.16
#9740DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9740DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740DB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740DB#FFFFFF#000000##FFFFFF
##9740DB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#8B648A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9740db;
/* rgb */ color: rgb(151, 64, 219);
/* oklch */ color: oklch(56.3% 0.226 306.0);
Tailwind
colors: {
  custom: {
    50: '#bb7ce7',
    500: '#9740db',
    950: '#000000',
  },
}
SCSS
$custom: #9740db;
$custom-light: #bb7ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9740db",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 273.677,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56332,
    "c": 0.22561,
    "h": 306
  },
  "luminance": 0.15361
}

Semantic roles & 50–950 ramp

primary
#9740DB
secondary
#B7DC9B
accent
#EB3D89
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9740DB

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

Preview Lab → · Contrast checker → · Palette generator →

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