#9751E2#9751E2

#9751E2 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.9% C 0.212 H 302.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#9751E2
RGBrgb(151, 81, 226)
HSLhsl(269, 71%, 60%)
HSVhsv(269, 64%, 89%)
CMYKcmyk(33.2%, 64.2%, 0%, 11.4%)
CIE-LABlab(49.44, 56.18, -62.89)
CIE-LCHlch(49.44, 84.33, 311.77°)
OKLaboklab(58.86% 0.1139 -0.1786)
OKLCHoklch(58.86% 0.212 302.5)
XYZxyz(29.4292, 17.9551, 73.8520)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9751E2 #9CE251
analogous
#5153E2 #9751E2 #E051E2
triadic
#9751E2 #E29751 #51E297
tetradic
#9751E2 #E25153 #9CE251 #51E2E0
square
#9751E2 #E25153 #9CE251 #51E2E0
split-complementary
#9751E2 #E2E051 #53E251
monochromatic
#5A1A9E #7823D3 #9751E2 #B685EB #D6BAF3

Accessibility & contrast

On white

4.57
#9751E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#9751E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9751E2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9751E2#FFFFFF#000000##000000
##9751E21.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E6
Deuteranopia (green-blind)
#1B75DF
Tritanopia (blue-blind)
#887192
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9751e2;
/* rgb */ color: rgb(151, 81, 226);
/* oklch */ color: oklch(58.9% 0.212 302.5);
Tailwind
colors: {
  custom: {
    50: '#bb86ec',
    500: '#9751e2',
    950: '#000000',
  },
}
SCSS
$custom: #9751e2;
$custom-light: #bb86ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9751e2",
  "rgb": {
    "r": 151,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 268.966,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58858,
    "c": 0.21183,
    "h": 302.5
  },
  "luminance": 0.17955
}

Semantic roles & 50–950 ramp

primary
#9751E2
secondary
#C8E3AC
accent
#D31276
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9751E2

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

Preview Lab → · Contrast checker → · Palette generator →

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