#8951D8#8951D8

#8951D8 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.7% C 0.198 H 299.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8951D8
RGBrgb(137, 81, 216)
HSLhsl(265, 63%, 58%)
HSVhsv(265, 63%, 85%)
CMYKcmyk(36.6%, 62.5%, 0%, 15.3%)
CIE-LABlab(47.18, 50.77, -60.94)
CIE-LCHlch(47.18, 79.31, 309.80°)
OKLaboklab(56.66% 0.0962 -0.1733)
OKLCHoklch(56.66% 0.198 299)
XYZxyz(25.6505, 16.1608, 66.7204)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8951D8 #A0D851
analogous
#515CD8 #8951D8 #CC51D8
triadic
#8951D8 #D88951 #51D889
tetradic
#8951D8 #D8515C #A0D851 #51D8CC
square
#8951D8 #D8515C #A0D851 #51D8CC
split-complementary
#8951D8 #D8CC51 #5CD851
monochromatic
#4E208F #692BC1 #8951D8 #AB83E3 #CDB5EE

Accessibility & contrast

On white

4.96
#8951D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8951D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8951D8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8951D8#FFFFFF#000000##FFFFFF
##8951D81.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#126FD5
Tritanopia (blue-blind)
#776F8D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8951d8;
/* rgb */ color: rgb(137, 81, 216);
/* oklch */ color: oklch(56.7% 0.198 299.0);
Tailwind
colors: {
  custom: {
    50: '#b185e5',
    500: '#8951d8',
    950: '#000000',
  },
}
SCSS
$custom: #8951d8;
$custom-light: #b185e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8951d8",
  "rgb": {
    "r": 137,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 264.889,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56659,
    "c": 0.19821,
    "h": 299
  },
  "luminance": 0.16161
}

Semantic roles & 50–950 ramp

primary
#8951D8
secondary
#C7DDA8
accent
#E641A2
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8951D8

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

Preview Lab → · Contrast checker → · Palette generator →

#8951D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva