#9742D8#9742D8

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

Color values

HEX#9742D8
RGBrgb(151, 66, 216)
HSLhsl(274, 66%, 55%)
HSVhsv(274, 69%, 85%)
CMYKcmyk(30.1%, 69.4%, 0%, 15.3%)
CIE-LABlab(46.22, 60.90, -62.41)
CIE-LCHlch(46.22, 87.20, 314.30°)
OKLaboklab(56.34% 0.1309 -0.1771)
OKLCHoklch(56.34% 0.22 306.5)
XYZxyz(27.1027, 15.4339, 66.5037)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742D8 #83D842
analogous
#4C42D8 #9742D8 #D842CE
triadic
#9742D8 #D89742 #42D897
tetradic
#9742D8 #D84C42 #83D842 #42CED8
square
#9742D8 #D84C42 #83D842 #42CED8
split-complementary
#9742D8 #CED842 #42D84C
monochromatic
#571B84 #7826B7 #9742D8 #B375E2 #CFA7ED

Accessibility & contrast

On white

5.14
#9742D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9742D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742D8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742D8#FFFFFF#000000##FFFFFF
##9742D81.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#0D6ED5
Tritanopia (blue-blind)
#8C6488
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9742d8;
/* rgb */ color: rgb(151, 66, 216);
/* oklch */ color: oklch(56.3% 0.220 306.5);
Tailwind
colors: {
  custom: {
    50: '#bb7de5',
    500: '#9742d8',
    950: '#000000',
  },
}
SCSS
$custom: #9742d8;
$custom-light: #bb7de5;
$custom-dark: #000000;
JSON
{
  "hex": "#9742d8",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 274,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56335,
    "c": 0.22026,
    "h": 306.5
  },
  "luminance": 0.15434
}

Semantic roles & 50–950 ramp

primary
#9742D8
secondary
#B7DA9C
accent
#E93F89
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9742D8

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

Preview Lab → · Contrast checker → · Palette generator →

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