#8948CC#8948CC

#8948CC is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.6% C 0.197 H 303.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8948CC
RGBrgb(137, 72, 204)
HSLhsl(270, 56%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(32.8%, 64.7%, 0%, 20%)
CIE-LABlab(44.68, 52.41, -58.10)
CIE-LCHlch(44.68, 78.25, 312.05°)
OKLaboklab(54.59% 0.1073 -0.165)
OKLCHoklch(54.59% 0.197 303)
XYZxyz(23.5305, 14.3127, 58.6380)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8948CC #8BCC48
analogous
#4849CC #8948CC #CB48CC
triadic
#8948CC #CC8948 #48CC89
tetradic
#8948CC #CC4849 #8BCC48 #48CCCB
square
#8948CC #CC4849 #8BCC48 #48CCCB
split-complementary
#8948CC #CCCB48 #49CC48
monochromatic
#4C2178 #6A2FA8 #8948CC #A878D9 #C7A8E7

Accessibility & contrast

On white

5.44
#8948CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8948CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8948CC
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8948CC#FFFFFF#000000##FFFFFF
##8948CC1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#1969C9
Tritanopia (blue-blind)
#7C6584
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8948cc;
/* rgb */ color: rgb(137, 72, 204);
/* oklch */ color: oklch(54.6% 0.197 303.0);
Tailwind
colors: {
  custom: {
    50: '#b07fdc',
    500: '#8948cc',
    950: '#000000',
  },
}
SCSS
$custom: #8948cc;
$custom-light: #b07fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8948cc",
  "rgb": {
    "r": 137,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 269.545,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54589,
    "c": 0.19676,
    "h": 303
  },
  "luminance": 0.14313
}

Semantic roles & 50–950 ramp

primary
#8948CC
secondary
#B8D49C
accent
#E04895
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8948CC

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

Preview Lab → · Contrast checker → · Palette generator →

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