#9742BA#9742BA

#9742BA is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.3% C 0.190 H 314.6°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9742BA
RGBrgb(151, 66, 186)
HSLhsl(283, 48%, 49%)
HSVhsv(283, 65%, 73%)
CMYKcmyk(18.8%, 64.5%, 0%, 27.1%)
CIE-LABlab(44.26, 54.38, -48.22)
CIE-LCHlch(44.26, 72.68, 318.44°)
OKLaboklab(54.31% 0.1335 -0.1355)
OKLCHoklch(54.31% 0.19 314.6)
XYZxyz(23.5722, 14.0217, 47.9096)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742BA #65BA42
analogous
#5B42BA #9742BA #BA42A1
triadic
#9742BA #BA9742 #42BA97
tetradic
#9742BA #BA5B42 #65BA42 #42A1BA
square
#9742BA #BA5B42 #65BA42 #42A1BA
split-complementary
#9742BA #A1BA42 #42BA5B
monochromatic
#4E2260 #72328D #9742BA #B06ECB #C99BDB

Accessibility & contrast

On white

5.52
#9742BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9742BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742BA
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742BA#FFFFFF#000000##FFFFFF
##9742BA1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D64BE
Deuteranopia (green-blind)
#3E6BB7
Tritanopia (blue-blind)
#945978
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9742ba;
/* rgb */ color: rgb(151, 66, 186);
/* oklch */ color: oklch(54.3% 0.190 314.6);
Tailwind
colors: {
  custom: {
    50: '#b97ccf',
    500: '#9742ba',
    950: '#000000',
  },
}
SCSS
$custom: #9742ba;
$custom-light: #b97ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#9742ba",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 282.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54307,
    "c": 0.19021,
    "h": 314.6
  },
  "luminance": 0.14021
}

Semantic roles & 50–950 ramp

primary
#9742BA
secondary
#A0C890
accent
#D75178
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9742BA

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

Preview Lab → · Contrast checker → · Palette generator →

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