#9751DC#9751DC

#9751DC is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.4% C 0.205 H 303.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#9751DC
RGBrgb(151, 81, 220)
HSLhsl(270, 67%, 59%)
HSVhsv(270, 63%, 86%)
CMYKcmyk(31.4%, 63.2%, 0%, 13.7%)
CIE-LABlab(49.05, 54.76, -60.13)
CIE-LCHlch(49.05, 81.33, 312.32°)
OKLaboklab(58.45% 0.1143 -0.1705)
OKLCHoklch(58.45% 0.205 303.8)
XYZxyz(28.6203, 17.6315, 69.5917)
Luminance0.1763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9751DC #96DC51
analogous
#5251DC #9751DC #DC51DB
triadic
#9751DC #DC9751 #51DC97
tetradic
#9751DC #DC5251 #96DC51 #51DBDC
square
#9751DC #DC5251 #96DC51 #51DBDC
split-complementary
#9751DC #DBDC51 #51DC52
monochromatic
#5A1E95 #7828C8 #9751DC #B584E6 #D4B7F0

Accessibility & contrast

On white

4.64
#9751DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#9751DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9751DC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9751DC#FFFFFF#000000##FFFFFF
##9751DC1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#2874D9
Tritanopia (blue-blind)
#8A6F8F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9751dc;
/* rgb */ color: rgb(151, 81, 220);
/* oklch */ color: oklch(58.4% 0.205 303.8);
Tailwind
colors: {
  custom: {
    50: '#ba86e8',
    500: '#9751dc',
    950: '#000000',
  },
}
SCSS
$custom: #9751dc;
$custom-light: #ba86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9751dc",
  "rgb": {
    "r": 151,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 270.216,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58447,
    "c": 0.20528,
    "h": 303.8
  },
  "luminance": 0.17631
}

Semantic roles & 50–950 ramp

primary
#9751DC
secondary
#C4E0A9
accent
#E93E93
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9751DC

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

Preview Lab → · Contrast checker → · Palette generator →

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