#9746D8#9746D8

#9746D8 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.8% C 0.215 H 306.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9746D8
RGBrgb(151, 70, 216)
HSLhsl(273, 65%, 56%)
HSVhsv(273, 68%, 85%)
CMYKcmyk(30.1%, 67.6%, 0%, 15.3%)
CIE-LABlab(46.87, 59.10, -61.37)
CIE-LCHlch(46.87, 85.20, 313.92°)
OKLaboklab(56.79% 0.1268 -0.1741)
OKLCHoklch(56.79% 0.215 306.1)
XYZxyz(27.3446, 15.9177, 66.5843)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9746D8 #87D846
analogous
#4E46D8 #9746D8 #D846D0
triadic
#9746D8 #D89746 #46D897
tetradic
#9746D8 #D84E46 #87D846 #46D0D8
square
#9746D8 #D84E46 #87D846 #46D0D8
split-complementary
#9746D8 #D0D846 #46D84E
monochromatic
#581C87 #7827BA #9746D8 #B379E3 #D0ABED

Accessibility & contrast

On white

5.02
#9746D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9746D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9746D8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9746D8#FFFFFF#000000##FFFFFF
##9746D81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#196FD5
Tritanopia (blue-blind)
#8C668A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9746d8;
/* rgb */ color: rgb(151, 70, 216);
/* oklch */ color: oklch(56.8% 0.215 306.1);
Tailwind
colors: {
  custom: {
    50: '#ba7fe5',
    500: '#9746d8',
    950: '#000000',
  },
}
SCSS
$custom: #9746d8;
$custom-light: #ba7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#9746d8",
  "rgb": {
    "r": 151,
    "g": 70,
    "b": 216
  },
  "hsl": {
    "h": 273.288,
    "s": 65.179,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56795,
    "c": 0.21536,
    "h": 306.1
  },
  "luminance": 0.15917
}

Semantic roles & 50–950 ramp

primary
#9746D8
secondary
#BADB9F
accent
#E8408B
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9746D8

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

Preview Lab → · Contrast checker → · Palette generator →

#9746D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva