#8751EB#8751EB

#8751EB is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.8% C 0.220 H 294.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8751EB
RGBrgb(135, 81, 235)
HSLhsl(261, 79%, 62%)
HSVhsv(261, 66%, 92%)
CMYKcmyk(42.6%, 65.5%, 0%, 7.8%)
CIE-LABlab(48.30, 55.23, -69.90)
CIE-LCHlch(48.30, 89.09, 308.31°)
OKLaboklab(57.84% 0.0917 -0.1997)
OKLCHoklch(57.84% 0.22 294.6)
XYZxyz(27.9255, 17.0332, 80.3976)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8751EB #B5EB51
analogous
#5168EB #8751EB #D451EB
triadic
#8751EB #EB8751 #51EB87
tetradic
#8751EB #EB5168 #B5EB51 #51EBD4
square
#8751EB #EB5168 #B5EB51 #51EBD4
split-complementary
#8751EB #EBD451 #68EB51
monochromatic
#4A14AE #611AE5 #8751EB #AD88F1 #D3BFF8

Accessibility & contrast

On white

4.77
#8751EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8751EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8751EB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8751EB#FFFFFF#000000##FFFFFF
##8751EB1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#0070E8
Tritanopia (blue-blind)
#6C7697
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8751eb;
/* rgb */ color: rgb(135, 81, 235);
/* oklch */ color: oklch(57.8% 0.220 294.6);
Tailwind
colors: {
  custom: {
    50: '#b185f2',
    500: '#8751eb',
    950: '#000000',
  },
}
SCSS
$custom: #8751eb;
$custom-light: #b185f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8751eb",
  "rgb": {
    "r": 135,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 261.039,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57836,
    "c": 0.21978,
    "h": 294.6
  },
  "luminance": 0.17034
}

Semantic roles & 50–950 ramp

primary
#8751EB
secondary
#D4E8B0
accent
#DC0A92
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8751EB

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

Preview Lab → · Contrast checker → · Palette generator →

#8751EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva