#9748D4#9748D4

#9748D4 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.8% C 0.209 H 306.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9748D4
RGBrgb(151, 72, 212)
HSLhsl(274, 62%, 56%)
HSVhsv(274, 66%, 83%)
CMYKcmyk(28.8%, 66%, 0%, 16.9%)
CIE-LABlab(46.93, 57.27, -58.97)
CIE-LCHlch(46.93, 82.20, 314.16°)
OKLaboklab(56.76% 0.125 -0.1671)
OKLCHoklch(56.76% 0.209 306.8)
XYZxyz(26.9610, 15.9678, 63.9364)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9748D4 #85D448
analogous
#5148D4 #9748D4 #D448CB
triadic
#9748D4 #D49748 #48D497
tetradic
#9748D4 #D45148 #85D448 #48CBD4
square
#9748D4 #D45148 #85D448 #48CBD4
split-complementary
#9748D4 #CBD448 #48D451
monochromatic
#571F83 #782AB4 #9748D4 #B37AE0 #CFABEB

Accessibility & contrast

On white

5.01
#9748D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9748D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9748D4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9748D4#FFFFFF#000000##FFFFFF
##9748D41.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#2670D1
Tritanopia (blue-blind)
#8D6688
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9748d4;
/* rgb */ color: rgb(151, 72, 212);
/* oklch */ color: oklch(56.8% 0.209 306.8);
Tailwind
colors: {
  custom: {
    50: '#ba80e2',
    500: '#9748d4',
    950: '#000000',
  },
}
SCSS
$custom: #9748d4;
$custom-light: #ba80e2;
$custom-dark: #000000;
JSON
{
  "hex": "#9748d4",
  "rgb": {
    "r": 151,
    "g": 72,
    "b": 212
  },
  "hsl": {
    "h": 273.857,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56757,
    "c": 0.20867,
    "h": 306.8
  },
  "luminance": 0.15968
}

Semantic roles & 50–950 ramp

primary
#9748D4
secondary
#B8D99F
accent
#E54389
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9748D4

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

Preview Lab → · Contrast checker → · Palette generator →

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