#9742BD#9742BD

#9742BD is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.5% C 0.193 H 313.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9742BD
RGBrgb(151, 66, 189)
HSLhsl(281, 48%, 50%)
HSVhsv(281, 65%, 74%)
CMYKcmyk(20.1%, 65.1%, 0%, 25.9%)
CIE-LABlab(44.45, 55.01, -49.67)
CIE-LCHlch(44.45, 74.12, 317.92°)
OKLaboklab(54.5% 0.1334 -0.1397)
OKLCHoklch(54.5% 0.193 313.7)
XYZxyz(23.8945, 14.1506, 49.6069)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742BD #68BD42
analogous
#5942BD #9742BD #BD42A6
triadic
#9742BD #BD9742 #42BD97
tetradic
#9742BD #BD5942 #68BD42 #42A6BD
square
#9742BD #BD5942 #68BD42 #42A6BD
split-complementary
#9742BD #A6BD42 #42BD59
monochromatic
#4F2262 #733290 #9742BD #B06FCD #C99DDD

Accessibility & contrast

On white

5.48
#9742BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9742BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742BD
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742BD#FFFFFF#000000##FFFFFF
##9742BD1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0164C1
Deuteranopia (green-blind)
#3C6BBA
Tritanopia (blue-blind)
#935A7A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9742bd;
/* rgb */ color: rgb(151, 66, 189);
/* oklch */ color: oklch(54.5% 0.193 313.7);
Tailwind
colors: {
  custom: {
    50: '#b97cd1',
    500: '#9742bd',
    950: '#000000',
  },
}
SCSS
$custom: #9742bd;
$custom-light: #b97cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9742bd",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 281.463,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.54499,
    "c": 0.1932,
    "h": 313.7
  },
  "luminance": 0.1415
}

Semantic roles & 50–950 ramp

primary
#9742BD
secondary
#A3C992
accent
#D8507A
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9742BD

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

Preview Lab → · Contrast checker → · Palette generator →

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