#9742B5#9742B5

#9742B5 is a mid, vivid purple. Relative luminance 0.138; OKLCH L 54.0% C 0.185 H 316.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9742B5
RGBrgb(151, 66, 181)
HSLhsl(284, 47%, 48%)
HSVhsv(284, 64%, 71%)
CMYKcmyk(16.6%, 63.5%, 0%, 29%)
CIE-LABlab(43.96, 53.34, -45.77)
CIE-LCHlch(43.96, 70.28, 319.37°)
OKLaboklab(53.99% 0.1336 -0.1283)
OKLCHoklch(53.99% 0.185 316.2)
XYZxyz(23.0499, 13.8128, 45.1591)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742B5 #60B542
analogous
#5D42B5 #9742B5 #B54299
triadic
#9742B5 #B59742 #42B597
tetradic
#9742B5 #B55D42 #60B542 #4299B5
square
#9742B5 #B55D42 #60B542 #4299B5
split-complementary
#9742B5 #99B542 #42B55D
monochromatic
#4C215B #723288 #9742B5 #B16BC9 #C898D9

Accessibility & contrast

On white

5.58
#9742B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#9742B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742B5
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742B5#FFFFFF#000000##FFFFFF
##9742B51.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1963B9
Deuteranopia (green-blind)
#426AB2
Tritanopia (blue-blind)
#955776
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9742b5;
/* rgb */ color: rgb(151, 66, 181);
/* oklch */ color: oklch(54.0% 0.185 316.2);
Tailwind
colors: {
  custom: {
    50: '#b97ccc',
    500: '#9742b5',
    950: '#000000',
  },
}
SCSS
$custom: #9742b5;
$custom-light: #b97ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#9742b5",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 284.348,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53993,
    "c": 0.18525,
    "h": 316.2
  },
  "luminance": 0.13812
}

Semantic roles & 50–950 ramp

primary
#9742B5
secondary
#9CC58E
accent
#D65274
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A13
muted
#817C82

Preview Lab

Preview with #9742B5

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

Preview Lab → · Contrast checker → · Palette generator →

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