#8951D2#8951D2

#8951D2 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.191 H 300.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8951D2
RGBrgb(137, 81, 210)
HSLhsl(266, 59%, 57%)
HSVhsv(266, 61%, 82%)
CMYKcmyk(34.8%, 61.4%, 0%, 17.6%)
CIE-LABlab(46.79, 49.26, -58.15)
CIE-LCHlch(46.79, 76.21, 310.27°)
OKLaboklab(56.24% 0.0966 -0.1651)
OKLCHoklch(56.24% 0.191 300.3)
XYZxyz(24.8890, 15.8562, 62.7096)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8951D2 #9AD251
analogous
#5159D2 #8951D2 #CA51D2
triadic
#8951D2 #D28951 #51D289
tetradic
#8951D2 #D25159 #9AD251 #51D2CA
square
#8951D2 #D25159 #9AD251 #51D2CA
split-complementary
#8951D2 #D2CA51 #59D251
monochromatic
#4E2386 #6A2FB7 #8951D2 #AA82DF #CBB2EB

Accessibility & contrast

On white

5.03
#8951D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8951D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8951D2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8951D2#FFFFFF#000000##FFFFFF
##8951D21.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#226ECF
Tritanopia (blue-blind)
#796D8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8951d2;
/* rgb */ color: rgb(137, 81, 210);
/* oklch */ color: oklch(56.2% 0.191 300.3);
Tailwind
colors: {
  custom: {
    50: '#b085e1',
    500: '#8951d2',
    950: '#000000',
  },
}
SCSS
$custom: #8951d2;
$custom-light: #b085e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8951d2",
  "rgb": {
    "r": 137,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 266.047,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56242,
    "c": 0.19128,
    "h": 300.3
  },
  "luminance": 0.15856
}

Semantic roles & 50–950 ramp

primary
#8951D2
secondary
#C3DAA5
accent
#E2469E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8951D2

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

Preview Lab → · Contrast checker → · Palette generator →

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