#9748E5#9748E5

#9748E5 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.0% C 0.226 H 302.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9748E5
RGBrgb(151, 72, 229)
HSLhsl(270, 75%, 59%)
HSVhsv(270, 69%, 90%)
CMYKcmyk(34.1%, 68.6%, 0%, 10.2%)
CIE-LABlab(48.10, 61.17, -66.77)
CIE-LCHlch(48.10, 90.55, 312.50°)
OKLaboklab(57.96% 0.123 -0.19)
OKLCHoklch(57.96% 0.226 302.9)
XYZxyz(29.2194, 16.8712, 75.8306)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9748E5 #96E548
analogous
#4948E5 #9748E5 #E548E5
triadic
#9748E5 #E59748 #48E597
tetradic
#9748E5 #E54948 #96E548 #48E5E5
square
#9748E5 #E54948 #96E548 #48E5E5
split-complementary
#9748E5 #E5E548 #48E549
monochromatic
#5A169C #781ED2 #9748E5 #B57EED #D4B3F4

Accessibility & contrast

On white

4.80
#9748E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9748E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9748E5
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9748E5#FFFFFF#000000##FFFFFF
##9748E51.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#0072E2
Tritanopia (blue-blind)
#876D91
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9748e5;
/* rgb */ color: rgb(151, 72, 229);
/* oklch */ color: oklch(58.0% 0.226 302.9);
Tailwind
colors: {
  custom: {
    50: '#bb81ee',
    500: '#9748e5',
    950: '#000000',
  },
}
SCSS
$custom: #9748e5;
$custom-light: #bb81ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9748e5",
  "rgb": {
    "r": 151,
    "g": 72,
    "b": 229
  },
  "hsl": {
    "h": 270.191,
    "s": 75.12,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57959,
    "c": 0.22632,
    "h": 302.9
  },
  "luminance": 0.16871
}

Semantic roles & 50–950 ramp

primary
#9748E5
secondary
#C4E3A6
accent
#F23693
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9748E5

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

Preview Lab → · Contrast checker → · Palette generator →

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