#9742D7#9742D7

#9742D7 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.219 H 306.7°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9742D7
RGBrgb(151, 66, 215)
HSLhsl(274, 65%, 55%)
HSVhsv(274, 69%, 84%)
CMYKcmyk(29.8%, 69.3%, 0%, 15.7%)
CIE-LABlab(46.15, 60.67, -61.95)
CIE-LCHlch(46.15, 86.71, 314.40°)
OKLaboklab(56.26% 0.1311 -0.1758)
OKLCHoklch(56.26% 0.219 306.7)
XYZxyz(26.9738, 15.3823, 65.8249)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742D7 #82D742
analogous
#4C42D7 #9742D7 #D742CD
triadic
#9742D7 #D79742 #42D797
tetradic
#9742D7 #D74C42 #82D742 #42CDD7
square
#9742D7 #D74C42 #82D742 #42CDD7
split-complementary
#9742D7 #CDD742 #42D74C
monochromatic
#571C83 #7826B5 #9742D7 #B375E2 #CFA7EC

Accessibility & contrast

On white

5.15
#9742D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9742D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742D7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742D7#FFFFFF#000000##FFFFFF
##9742D71.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#116ED4
Tritanopia (blue-blind)
#8C6488
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9742d7;
/* rgb */ color: rgb(151, 66, 215);
/* oklch */ color: oklch(56.3% 0.219 306.7);
Tailwind
colors: {
  custom: {
    50: '#bb7de4',
    500: '#9742d7',
    950: '#000000',
  },
}
SCSS
$custom: #9742d7;
$custom-light: #bb7de4;
$custom-dark: #000000;
JSON
{
  "hex": "#9742d7",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 274.228,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56264,
    "c": 0.21926,
    "h": 306.7
  },
  "luminance": 0.15382
}

Semantic roles & 50–950 ramp

primary
#9742D7
secondary
#B6DA9B
accent
#E84088
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9742D7

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

Preview Lab → · Contrast checker → · Palette generator →

#9742D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva