#9751F2#9751F2

#9751F2 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 60.0% C 0.229 H 299.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9751F2
RGBrgb(151, 81, 242)
HSLhsl(266, 86%, 63%)
HSVhsv(266, 67%, 95%)
CMYKcmyk(37.6%, 66.5%, 0%, 5.1%)
CIE-LABlab(50.54, 60.04, -70.12)
CIE-LCHlch(50.54, 92.31, 310.57°)
OKLaboklab(60% 0.1122 -0.1999)
OKLCHoklch(60% 0.229 299.3)
XYZxyz(31.7279, 18.8746, 85.9588)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9751F2 #ACF251
analogous
#515BF2 #9751F2 #E751F2
triadic
#9751F2 #F29751 #51F297
tetradic
#9751F2 #F2515B #ACF251 #51F2E7
square
#9751F2 #F2515B #ACF251 #51F2E7
split-complementary
#9751F2 #F2E751 #5BF251
monochromatic
#590EBB #7518EE #9751F2 #B98AF6 #DBC3FB

Accessibility & contrast

On white

4.40
#9751F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#9751F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9751F2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9751F2#FFFFFF#000000##000000
##9751F21.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#0077EF
Tritanopia (blue-blind)
#82779B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9751f2;
/* rgb */ color: rgb(151, 81, 242);
/* oklch */ color: oklch(60.0% 0.229 299.3);
Tailwind
colors: {
  custom: {
    50: '#bc86f7',
    500: '#9751f2',
    950: '#000000',
  },
}
SCSS
$custom: #9751f2;
$custom-light: #bc86f7;
$custom-dark: #000000;
JSON
{
  "hex": "#9751f2",
  "rgb": {
    "r": 151,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 266.087,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59995,
    "c": 0.22918,
    "h": 299.3
  },
  "luminance": 0.18875
}

Semantic roles & 50–950 ramp

primary
#9751F2
secondary
#D3ECB3
accent
#E30381
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130B17
muted
#827C85

Preview Lab

Preview with #9751F2

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

Preview Lab → · Contrast checker → · Palette generator →

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