#9742BE#9742BE

#9742BE is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.194 H 313.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9742BE
RGBrgb(151, 66, 190)
HSLhsl(281, 49%, 50%)
HSVhsv(281, 65%, 75%)
CMYKcmyk(20.5%, 65.3%, 0%, 25.5%)
CIE-LABlab(44.51, 55.22, -50.16)
CIE-LCHlch(44.51, 74.60, 317.75°)
OKLaboklab(54.56% 0.1334 -0.1412)
OKLCHoklch(54.56% 0.194 313.4)
XYZxyz(24.0034, 14.1942, 50.1805)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742BE #69BE42
analogous
#5942BE #9742BE #BE42A7
triadic
#9742BE #BE9742 #42BE97
tetradic
#9742BE #BE5942 #69BE42 #42A7BE
square
#9742BE #BE5942 #69BE42 #42A7BE
split-complementary
#9742BE #A7BE42 #42BE59
monochromatic
#4F2263 #733291 #9742BE #B070CE #C99DDD

Accessibility & contrast

On white

5.47
#9742BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9742BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742BE
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742BE#FFFFFF#000000##FFFFFF
##9742BE1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#3B6BBB
Tritanopia (blue-blind)
#935A7A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9742be;
/* rgb */ color: rgb(151, 66, 190);
/* oklch */ color: oklch(54.6% 0.194 313.4);
Tailwind
colors: {
  custom: {
    50: '#b97cd2',
    500: '#9742be',
    950: '#000000',
  },
}
SCSS
$custom: #9742be;
$custom-light: #b97cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9742be",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 281.129,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54563,
    "c": 0.1942,
    "h": 313.4
  },
  "luminance": 0.14193
}

Semantic roles & 50–950 ramp

primary
#9742BE
secondary
#A4CA92
accent
#D84F7A
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9742BE

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

Preview Lab → · Contrast checker → · Palette generator →

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