#9751DB#9751DB

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

Color values

HEX#9751DB
RGBrgb(151, 81, 219)
HSLhsl(270, 66%, 59%)
HSVhsv(270, 63%, 86%)
CMYKcmyk(31.1%, 63%, 0%, 14.1%)
CIE-LABlab(48.98, 54.52, -59.67)
CIE-LCHlch(48.98, 80.83, 312.42°)
OKLaboklab(58.38% 0.1144 -0.1691)
OKLCHoklch(58.38% 0.204 304.1)
XYZxyz(28.4882, 17.5787, 68.8963)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9751DB #95DB51
analogous
#5251DB #9751DB #DB51DA
triadic
#9751DB #DB9751 #51DB97
tetradic
#9751DB #DB5251 #95DB51 #51DADB
square
#9751DB #DB5251 #95DB51 #51DADB
split-complementary
#9751DB #DADB51 #51DB52
monochromatic
#5A1E93 #7929C6 #9751DB #B584E5 #D4B6F0

Accessibility & contrast

On white

4.65
#9751DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#9751DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9751DB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9751DB#FFFFFF#000000##FFFFFF
##9751DB1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#2A74D8
Tritanopia (blue-blind)
#8A6E8F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9751db;
/* rgb */ color: rgb(151, 81, 219);
/* oklch */ color: oklch(58.4% 0.204 304.1);
Tailwind
colors: {
  custom: {
    50: '#ba86e7',
    500: '#9751db',
    950: '#000000',
  },
}
SCSS
$custom: #9751db;
$custom-light: #ba86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9751db",
  "rgb": {
    "r": 151,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 270.435,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58379,
    "c": 0.20419,
    "h": 304.1
  },
  "luminance": 0.17579
}

Semantic roles & 50–950 ramp

primary
#9751DB
secondary
#C4DFA9
accent
#E93F93
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9751DB

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

Preview Lab → · Contrast checker → · Palette generator →

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