#8948E7#8948E7

#8948E7 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.6% C 0.226 H 297.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8948E7
RGBrgb(137, 72, 231)
HSLhsl(265, 77%, 59%)
HSVhsv(265, 69%, 91%)
CMYKcmyk(40.7%, 68.8%, 0%, 9.4%)
CIE-LABlab(46.61, 59.04, -70.39)
CIE-LCHlch(46.61, 91.87, 309.99°)
OKLaboklab(56.58% 0.1038 -0.2011)
OKLCHoklch(56.58% 0.226 297.3)
XYZxyz(27.0540, 15.7221, 77.1951)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8948E7 #A6E748
analogous
#4857E7 #8948E7 #D848E7
triadic
#8948E7 #E78948 #48E789
tetradic
#8948E7 #E74857 #A6E748 #48E7D8
square
#8948E7 #E74857 #A6E748 #48E7D8
split-complementary
#8948E7 #E7D848 #57E748
monochromatic
#4E15A0 #681CD6 #8948E7 #AC7EEE #CFB4F5

Accessibility & contrast

On white

5.07
#8948E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8948E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8948E7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8948E7#FFFFFF#000000##FFFFFF
##8948E71.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#716F92
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8948e7;
/* rgb */ color: rgb(137, 72, 231);
/* oklch */ color: oklch(56.6% 0.226 297.3);
Tailwind
colors: {
  custom: {
    50: '#b280f0',
    500: '#8948e7',
    950: '#000000',
  },
}
SCSS
$custom: #8948e7;
$custom-light: #b280f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8948e7",
  "rgb": {
    "r": 137,
    "g": 72,
    "b": 231
  },
  "hsl": {
    "h": 264.528,
    "s": 76.812,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5658,
    "c": 0.22632,
    "h": 297.3
  },
  "luminance": 0.15723
}

Semantic roles & 50–950 ramp

primary
#8948E7
secondary
#CBE4A6
accent
#F334A5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8948E7

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

Preview Lab → · Contrast checker → · Palette generator →

#8948E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva