#9748B1#9748B1

#9748B1 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.5% C 0.172 H 317.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9748B1
RGBrgb(151, 72, 177)
HSLhsl(285, 42%, 49%)
HSVhsv(285, 59%, 69%)
CMYKcmyk(14.7%, 59.3%, 0%, 30.6%)
CIE-LABlab(44.79, 49.63, -42.10)
CIE-LCHlch(44.79, 65.09, 319.69°)
OKLaboklab(54.52% 0.1261 -0.1176)
OKLCHoklch(54.52% 0.172 317)
XYZxyz(23.0145, 14.3892, 43.1515)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9748B1 #62B148
analogous
#6348B1 #9748B1 #B14897
triadic
#9748B1 #B19748 #48B197
tetradic
#9748B1 #B16348 #62B148 #4897B1
square
#9748B1 #B16348 #62B148 #4897B1
split-complementary
#9748B1 #97B148 #48B163
monochromatic
#4D255A #723685 #9748B1 #B071C5 #C89CD7

Accessibility & contrast

On white

5.42
#9748B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9748B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9748B1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9748B1#FFFFFF#000000##FFFFFF
##9748B11.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#4A6CAE
Tritanopia (blue-blind)
#965976
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9748b1;
/* rgb */ color: rgb(151, 72, 177);
/* oklch */ color: oklch(54.5% 0.172 317.0);
Tailwind
colors: {
  custom: {
    50: '#b87fc9',
    500: '#9748b1',
    950: '#000000',
  },
}
SCSS
$custom: #9748b1;
$custom-light: #b87fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9748b1",
  "rgb": {
    "r": 151,
    "g": 72,
    "b": 177
  },
  "hsl": {
    "h": 285.143,
    "s": 42.169,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54516,
    "c": 0.17244,
    "h": 317
  },
  "luminance": 0.14388
}

Semantic roles & 50–950 ramp

primary
#9748B1
secondary
#9EC391
accent
#D25675
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9748B1

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

Preview Lab → · Contrast checker → · Palette generator →

#9748B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva