#9742BF#9742BF

#9742BF is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.195 H 313.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9742BF
RGBrgb(151, 66, 191)
HSLhsl(281, 49%, 50%)
HSVhsv(281, 65%, 75%)
CMYKcmyk(20.9%, 65.4%, 0%, 25.1%)
CIE-LABlab(44.57, 55.44, -50.64)
CIE-LCHlch(44.57, 75.09, 317.59°)
OKLaboklab(54.63% 0.1333 -0.1426)
OKLCHoklch(54.63% 0.195 313.1)
XYZxyz(24.1130, 14.2380, 50.7581)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742BF #6ABF42
analogous
#5842BF #9742BF #BF42A8
triadic
#9742BF #BF9742 #42BF97
tetradic
#9742BF #BF5842 #6ABF42 #42A8BF
square
#9742BF #BF5842 #6ABF42 #42A8BF
split-complementary
#9742BF #A8BF42 #42BF58
monochromatic
#4F2265 #733292 #9742BF #B070CE #C99DDE

Accessibility & contrast

On white

5.46
#9742BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9742BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742BF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742BF#FFFFFF#000000##FFFFFF
##9742BF1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#3A6BBC
Tritanopia (blue-blind)
#935A7B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9742bf;
/* rgb */ color: rgb(151, 66, 191);
/* oklch */ color: oklch(54.6% 0.195 313.1);
Tailwind
colors: {
  custom: {
    50: '#b97cd3',
    500: '#9742bf',
    950: '#000000',
  },
}
SCSS
$custom: #9742bf;
$custom-light: #b97cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9742bf",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 280.8,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54628,
    "c": 0.19519,
    "h": 313.1
  },
  "luminance": 0.14237
}

Semantic roles & 50–950 ramp

primary
#9742BF
secondary
#A4CA93
accent
#D94F7B
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9742BF

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

Preview Lab → · Contrast checker → · Palette generator →

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