#9740D8#9740D8

#9740D8 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.223 H 306.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9740D8
RGBrgb(151, 64, 216)
HSLhsl(274, 66%, 55%)
HSVhsv(274, 70%, 85%)
CMYKcmyk(30.1%, 70.4%, 0%, 15.3%)
CIE-LABlab(45.91, 61.77, -62.91)
CIE-LCHlch(45.91, 88.17, 314.47°)
OKLaboklab(56.11% 0.1329 -0.1786)
OKLCHoklch(56.11% 0.223 306.7)
XYZxyz(26.9879, 15.2043, 66.4654)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740D8 #81D840
analogous
#4B40D8 #9740D8 #D840CD
triadic
#9740D8 #D89740 #40D897
tetradic
#9740D8 #D84B40 #81D840 #40CDD8
square
#9740D8 #D84B40 #81D840 #40CDD8
split-complementary
#9740D8 #CDD840 #40D84B
monochromatic
#561B83 #7825B6 #9740D8 #B373E2 #CEA6ED

Accessibility & contrast

On white

5.20
#9740D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9740D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740D8
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740D8#FFFFFF#000000##FFFFFF
##9740D81.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#046DD5
Tritanopia (blue-blind)
#8C6388
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9740d8;
/* rgb */ color: rgb(151, 64, 216);
/* oklch */ color: oklch(56.1% 0.223 306.7);
Tailwind
colors: {
  custom: {
    50: '#bb7ce5',
    500: '#9740d8',
    950: '#000000',
  },
}
SCSS
$custom: #9740d8;
$custom-light: #bb7ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#9740d8",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 274.342,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56114,
    "c": 0.22263,
    "h": 306.7
  },
  "luminance": 0.15204
}

Semantic roles & 50–950 ramp

primary
#9740D8
secondary
#B5DA9A
accent
#E93F88
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9740D8

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

Preview Lab → · Contrast checker → · Palette generator →

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