#8948EF#8948EF

#8948EF is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.2% C 0.235 H 295.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8948EF
RGBrgb(137, 72, 239)
HSLhsl(263, 84%, 61%)
HSVhsv(263, 70%, 94%)
CMYKcmyk(42.7%, 69.9%, 0%, 6.3%)
CIE-LABlab(47.22, 61.04, -73.91)
CIE-LCHlch(47.22, 95.86, 309.55°)
OKLaboklab(57.2% 0.1025 -0.2114)
OKLCHoklch(57.2% 0.235 295.9)
XYZxyz(28.2097, 16.1844, 83.2822)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8948EF #AEEF48
analogous
#485AEF #8948EF #DC48EF
triadic
#8948EF #EF8948 #48EF89
tetradic
#8948EF #EF485A #AEEF48 #48EFDC
square
#8948EF #EF485A #AEEF48 #48EFDC
split-complementary
#8948EF #EFDC48 #5AEF48
monochromatic
#4D0FAD #6614E6 #8948EF #AD80F4 #D2B9F9

Accessibility & contrast

On white

4.96
#8948EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8948EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8948EF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8948EF#FFFFFF#000000##FFFFFF
##8948EF1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F4
Deuteranopia (green-blind)
#006EEC
Tritanopia (blue-blind)
#6E7297
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8948ef;
/* rgb */ color: rgb(137, 72, 239);
/* oklch */ color: oklch(57.2% 0.235 295.9);
Tailwind
colors: {
  custom: {
    50: '#b380f5',
    500: '#8948ef',
    950: '#000000',
  },
}
SCSS
$custom: #8948ef;
$custom-light: #b380f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8948ef",
  "rgb": {
    "r": 137,
    "g": 72,
    "b": 239
  },
  "hsl": {
    "h": 263.353,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57202,
    "c": 0.23495,
    "h": 295.9
  },
  "luminance": 0.16185
}

Semantic roles & 50–950 ramp

primary
#8948EF
secondary
#D0E9AA
accent
#E0058B
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8948EF

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

Preview Lab → · Contrast checker → · Palette generator →

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