#9748D7#9748D7

#9748D7 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.0% C 0.212 H 306.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9748D7
RGBrgb(151, 72, 215)
HSLhsl(273, 64%, 56%)
HSVhsv(273, 67%, 84%)
CMYKcmyk(29.8%, 66.5%, 0%, 15.7%)
CIE-LABlab(47.13, 57.95, -60.37)
CIE-LCHlch(47.13, 83.68, 313.83°)
OKLaboklab(56.96% 0.1248 -0.1712)
OKLCHoklch(56.96% 0.212 306.1)
XYZxyz(27.3429, 16.1206, 65.9479)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9748D7 #88D748
analogous
#5048D7 #9748D7 #D748D0
triadic
#9748D7 #D79748 #48D797
tetradic
#9748D7 #D75048 #88D748 #48D0D7
square
#9748D7 #D75048 #88D748 #48D0D7
split-complementary
#9748D7 #D0D748 #48D750
monochromatic
#581E87 #7829B9 #9748D7 #B47AE2 #D0ACED

Accessibility & contrast

On white

4.97
#9748D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9748D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9748D7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9748D7#FFFFFF#000000##FFFFFF
##9748D71.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#2070D4
Tritanopia (blue-blind)
#8C678A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9748d7;
/* rgb */ color: rgb(151, 72, 215);
/* oklch */ color: oklch(57.0% 0.212 306.1);
Tailwind
colors: {
  custom: {
    50: '#ba80e4',
    500: '#9748d7',
    950: '#000000',
  },
}
SCSS
$custom: #9748d7;
$custom-light: #ba80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9748d7",
  "rgb": {
    "r": 151,
    "g": 72,
    "b": 215
  },
  "hsl": {
    "h": 273.147,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56964,
    "c": 0.2118,
    "h": 306.1
  },
  "luminance": 0.1612
}

Semantic roles & 50–950 ramp

primary
#9748D7
secondary
#BADBA0
accent
#E7418B
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9748D7

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

Preview Lab → · Contrast checker → · Palette generator →

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