#9751E8#9751E8

#9751E8 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.3% C 0.218 H 301.3°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#9751E8
RGBrgb(151, 81, 232)
HSLhsl(268, 77%, 61%)
HSVhsv(268, 65%, 91%)
CMYKcmyk(34.9%, 65.1%, 0%, 9%)
CIE-LABlab(49.85, 57.62, -65.63)
CIE-LCHlch(49.85, 87.33, 311.28°)
OKLaboklab(59.28% 0.1133 -0.1866)
OKLCHoklch(59.28% 0.218 301.3)
XYZxyz(30.2669, 18.2902, 78.2641)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9751E8 #A2E851
analogous
#5157E8 #9751E8 #E351E8
triadic
#9751E8 #E89751 #51E897
tetradic
#9751E8 #E85157 #A2E851 #51E8E3
square
#9751E8 #E85157 #A2E851 #51E8E3
split-complementary
#9751E8 #E8E351 #57E851
monochromatic
#5A16A8 #771DDE #9751E8 #B787EF #D8BDF6

Accessibility & contrast

On white

4.51
#9751E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#9751E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9751E8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9751E8#FFFFFF#000000##000000
##9751E81.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076ED
Deuteranopia (green-blind)
#0276E5
Tritanopia (blue-blind)
#867396
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9751e8;
/* rgb */ color: rgb(151, 81, 232);
/* oklch */ color: oklch(59.3% 0.218 301.3);
Tailwind
colors: {
  custom: {
    50: '#bb86f0',
    500: '#9751e8',
    950: '#000000',
  },
}
SCSS
$custom: #9751e8;
$custom-light: #bb86f0;
$custom-dark: #000000;
JSON
{
  "hex": "#9751e8",
  "rgb": {
    "r": 151,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 267.815,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59278,
    "c": 0.21835,
    "h": 301.3
  },
  "luminance": 0.1829
}

Semantic roles & 50–950 ramp

primary
#9751E8
secondary
#CCE7AE
accent
#D90D7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #9751E8

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

Preview Lab → · Contrast checker → · Palette generator →

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