#8948BA#8948BA

#8948BA is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.4% C 0.177 H 307.8°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8948BA
RGBrgb(137, 72, 186)
HSLhsl(274, 45%, 51%)
HSVhsv(274, 61%, 73%)
CMYKcmyk(26.3%, 61.3%, 0%, 27.1%)
CIE-LABlab(43.51, 48.14, -49.53)
CIE-LCHlch(43.51, 69.07, 314.18°)
OKLaboklab(53.37% 0.1083 -0.1398)
OKLCHoklch(53.37% 0.177 307.8)
XYZxyz(21.4950, 13.4986, 47.9180)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8948BA #79BA48
analogous
#5048BA #8948BA #BA48B2
triadic
#8948BA #BA8948 #48BA89
tetradic
#8948BA #BA5048 #79BA48 #48B2BA
square
#8948BA #BA5048 #79BA48 #48B2BA
split-complementary
#8948BA #B2BA48 #48BA50
monochromatic
#482562 #69368F #8948BA #A674CB #C2A1DC

Accessibility & contrast

On white

5.68
#8948BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8948BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8948BA
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8948BA#FFFFFF#000000##FFFFFF
##8948BA1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1164BE
Deuteranopia (green-blind)
#3567B7
Tritanopia (blue-blind)
#815F7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8948ba;
/* rgb */ color: rgb(137, 72, 186);
/* oklch */ color: oklch(53.4% 0.177 307.8);
Tailwind
colors: {
  custom: {
    50: '#af7ecf',
    500: '#8948ba',
    950: '#000000',
  },
}
SCSS
$custom: #8948ba;
$custom-light: #af7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8948ba",
  "rgb": {
    "r": 137,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 274.211,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53366,
    "c": 0.17682,
    "h": 307.8
  },
  "luminance": 0.13498
}

Semantic roles & 50–950 ramp

primary
#8948BA
secondary
#ABC896
accent
#D5538B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8948BA

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

Preview Lab → · Contrast checker → · Palette generator →

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