#9742BB#9742BB

#9742BB is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.4% C 0.191 H 314.3°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9742BB
RGBrgb(151, 66, 187)
HSLhsl(282, 48%, 50%)
HSVhsv(282, 65%, 73%)
CMYKcmyk(19.3%, 64.7%, 0%, 26.7%)
CIE-LABlab(44.33, 54.59, -48.70)
CIE-LCHlch(44.33, 73.16, 318.26°)
OKLaboklab(54.37% 0.1335 -0.1369)
OKLCHoklch(54.37% 0.191 314.3)
XYZxyz(23.6789, 14.0643, 48.4714)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742BB #66BB42
analogous
#5B42BB #9742BB #BB42A2
triadic
#9742BB #BB9742 #42BB97
tetradic
#9742BB #BB5B42 #66BB42 #42A2BB
square
#9742BB #BB5B42 #66BB42 #42A2BB
split-complementary
#9742BB #A2BB42 #42BB5B
monochromatic
#4E2261 #72328E #9742BB #B06ECC #C99CDC

Accessibility & contrast

On white

5.51
#9742BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9742BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742BB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742BB#FFFFFF#000000##FFFFFF
##9742BB1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0964BF
Deuteranopia (green-blind)
#3D6BB8
Tritanopia (blue-blind)
#945979
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9742bb;
/* rgb */ color: rgb(151, 66, 187);
/* oklch */ color: oklch(54.4% 0.191 314.3);
Tailwind
colors: {
  custom: {
    50: '#b97cd0',
    500: '#9742bb',
    950: '#000000',
  },
}
SCSS
$custom: #9742bb;
$custom-light: #b97cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9742bb",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 282.149,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54371,
    "c": 0.1912,
    "h": 314.3
  },
  "luminance": 0.14064
}

Semantic roles & 50–950 ramp

primary
#9742BB
secondary
#A1C891
accent
#D75079
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9742BB

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

Preview Lab → · Contrast checker → · Palette generator →

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