#8948CB#8948CB

#8948CB is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.5% C 0.196 H 303.3°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8948CB
RGBrgb(137, 72, 203)
HSLhsl(270, 56%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(32.5%, 64.5%, 0%, 20.4%)
CIE-LABlab(44.61, 52.17, -57.63)
CIE-LCHlch(44.61, 77.74, 312.15°)
OKLaboklab(54.52% 0.1074 -0.1636)
OKLCHoklch(54.52% 0.196 303.3)
XYZxyz(23.4109, 14.2649, 58.0084)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8948CB #8ACB48
analogous
#4849CB #8948CB #CB48CB
triadic
#8948CB #CB8948 #48CB89
tetradic
#8948CB #CB4849 #8ACB48 #48CBCB
square
#8948CB #CB4849 #8ACB48 #48CBCB
split-complementary
#8948CB #CBCB48 #49CB48
monochromatic
#4C2277 #6A2FA6 #8948CB #A878D9 #C6A7E6

Accessibility & contrast

On white

5.45
#8948CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8948CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8948CB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8948CB#FFFFFF#000000##FFFFFF
##8948CB1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#1C69C8
Tritanopia (blue-blind)
#7C6583
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8948cb;
/* rgb */ color: rgb(137, 72, 203);
/* oklch */ color: oklch(54.5% 0.196 303.3);
Tailwind
colors: {
  custom: {
    50: '#b07fdc',
    500: '#8948cb',
    950: '#000000',
  },
}
SCSS
$custom: #8948cb;
$custom-light: #b07fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8948cb",
  "rgb": {
    "r": 137,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 269.771,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54519,
    "c": 0.19566,
    "h": 303.3
  },
  "luminance": 0.14265
}

Semantic roles & 50–950 ramp

primary
#8948CB
secondary
#B8D39B
accent
#DF4994
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8948CB

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

Preview Lab → · Contrast checker → · Palette generator →

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