#9742B4#9742B4

#9742B4 is a mid, vivid purple. Relative luminance 0.138; OKLCH L 53.9% C 0.184 H 316.5°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9742B4
RGBrgb(151, 66, 180)
HSLhsl(285, 46%, 48%)
HSVhsv(285, 63%, 71%)
CMYKcmyk(16.1%, 63.3%, 0%, 29.4%)
CIE-LABlab(43.90, 53.13, -45.27)
CIE-LCHlch(43.90, 69.81, 319.57°)
OKLaboklab(53.93% 0.1336 -0.1269)
OKLCHoklch(53.93% 0.184 316.5)
XYZxyz(22.9477, 13.7719, 44.6206)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742B4 #5FB442
analogous
#5E42B4 #9742B4 #B44298
triadic
#9742B4 #B49742 #42B497
tetradic
#9742B4 #B45E42 #5FB442 #4298B4
square
#9742B4 #B45E42 #5FB442 #4298B4
split-complementary
#9742B4 #98B442 #42B45E
monochromatic
#4C215A #713287 #9742B4 #B16BC9 #C897D9

Accessibility & contrast

On white

5.59
#9742B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#9742B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742B4
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742B4#FFFFFF#000000##FFFFFF
##9742B41.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B63B7
Deuteranopia (green-blind)
#436AB1
Tritanopia (blue-blind)
#965675
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9742b4;
/* rgb */ color: rgb(151, 66, 180);
/* oklch */ color: oklch(53.9% 0.184 316.5);
Tailwind
colors: {
  custom: {
    50: '#b97ccb',
    500: '#9742b4',
    950: '#000000',
  },
}
SCSS
$custom: #9742b4;
$custom-light: #b97ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#9742b4",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 284.737,
    "s": 46.341,
    "l": 48.235
  },
  "oklch": {
    "l": 0.53931,
    "c": 0.18426,
    "h": 316.5
  },
  "luminance": 0.13771
}

Semantic roles & 50–950 ramp

primary
#9742B4
secondary
#9BC58D
accent
#D65273
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9742B4

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

Preview Lab → · Contrast checker → · Palette generator →

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