#9751D8#9751D8

#9751D8 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.2% C 0.201 H 304.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9751D8
RGBrgb(151, 81, 216)
HSLhsl(271, 63%, 58%)
HSVhsv(271, 63%, 85%)
CMYKcmyk(30.1%, 62.5%, 0%, 15.3%)
CIE-LABlab(48.79, 53.82, -58.27)
CIE-LCHlch(48.79, 79.32, 312.73°)
OKLaboklab(58.18% 0.1146 -0.165)
OKLCHoklch(58.18% 0.201 304.8)
XYZxyz(28.0969, 17.4222, 66.8351)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9751D8 #92D851
analogous
#5351D8 #9751D8 #D851D5
triadic
#9751D8 #D89751 #51D897
tetradic
#9751D8 #D85351 #92D851 #51D5D8
square
#9751D8 #D85351 #92D851 #51D5D8
split-complementary
#9751D8 #D5D851 #51D853
monochromatic
#59208F #792BC1 #9751D8 #B583E3 #D3B5EE

Accessibility & contrast

On white

4.68
#9751D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#9751D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9751D8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9751D8#FFFFFF#000000##FFFFFF
##9751D81.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#2F74D5
Tritanopia (blue-blind)
#8B6D8D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9751d8;
/* rgb */ color: rgb(151, 81, 216);
/* oklch */ color: oklch(58.2% 0.201 304.8);
Tailwind
colors: {
  custom: {
    50: '#ba86e5',
    500: '#9751d8',
    950: '#000000',
  },
}
SCSS
$custom: #9751d8;
$custom-light: #ba86e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9751d8",
  "rgb": {
    "r": 151,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 271.111,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.58178,
    "c": 0.20091,
    "h": 304.8
  },
  "luminance": 0.17422
}

Semantic roles & 50–950 ramp

primary
#9751D8
secondary
#C1DDA8
accent
#E64191
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9751D8

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

Preview Lab → · Contrast checker → · Palette generator →

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