#8951F2#8951F2

#8951F2 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.6% C 0.228 H 294.2°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8951F2
RGBrgb(137, 81, 242)
HSLhsl(261, 86%, 63%)
HSVhsv(261, 67%, 95%)
CMYKcmyk(43.4%, 66.5%, 0%, 5.1%)
CIE-LABlab(49.02, 57.42, -72.65)
CIE-LCHlch(49.02, 92.60, 308.32°)
OKLaboklab(58.56% 0.0934 -0.2078)
OKLCHoklch(58.56% 0.228 294.2)
XYZxyz(29.2816, 17.6132, 85.8441)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8951F2 #BAF251
analogous
#5169F2 #8951F2 #DA51F2
triadic
#8951F2 #F28951 #51F289
tetradic
#8951F2 #F25169 #BAF251 #51F2DA
square
#8951F2 #F25169 #BAF251 #51F2DA
split-complementary
#8951F2 #F2DA51 #69F251
monochromatic
#4A0EBB #6218EE #8951F2 #B08AF6 #D6C3FB

Accessibility & contrast

On white

4.64
#8951F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8951F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8951F2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8951F2#FFFFFF#000000##FFFFFF
##8951F21.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#0072EF
Tritanopia (blue-blind)
#6C789B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8951f2;
/* rgb */ color: rgb(137, 81, 242);
/* oklch */ color: oklch(58.6% 0.228 294.2);
Tailwind
colors: {
  custom: {
    50: '#b385f7',
    500: '#8951f2',
    950: '#000000',
  },
}
SCSS
$custom: #8951f2;
$custom-light: #b385f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8951f2",
  "rgb": {
    "r": 137,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 260.87,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58564,
    "c": 0.22781,
    "h": 294.2
  },
  "luminance": 0.17614
}

Semantic roles & 50–950 ramp

primary
#8951F2
secondary
#D8ECB3
accent
#E30395
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8951F2

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

Preview Lab → · Contrast checker → · Palette generator →

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