#8942BA#8942BA

#8942BA is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.185 H 308.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8942BA
RGBrgb(137, 66, 186)
HSLhsl(276, 48%, 49%)
HSVhsv(276, 65%, 73%)
CMYKcmyk(26.3%, 64.5%, 0%, 27.1%)
CIE-LABlab(42.40, 51.15, -51.31)
CIE-LCHlch(42.40, 72.45, 314.91°)
OKLaboklab(52.57% 0.1155 -0.145)
OKLCHoklch(52.57% 0.185 308.5)
XYZxyz(21.1259, 12.7603, 47.7949)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8942BA #73BA42
analogous
#4D42BA #8942BA #BA42AF
triadic
#8942BA #BA8942 #42BA89
tetradic
#8942BA #BA4D42 #73BA42 #42AFBA
square
#8942BA #BA4D42 #73BA42 #42AFBA
split-complementary
#8942BA #AFBA42 #42BA4D
monochromatic
#462260 #68328D #8942BA #A56ECB #C19BDB

Accessibility & contrast

On white

5.91
#8942BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8942BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8942BA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8942BA#FFFFFF#000000##FFFFFF
##8942BA1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2E65B7
Tritanopia (blue-blind)
#825B78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8942ba;
/* rgb */ color: rgb(137, 66, 186);
/* oklch */ color: oklch(52.6% 0.185 308.5);
Tailwind
colors: {
  custom: {
    50: '#af7bcf',
    500: '#8942ba',
    950: '#000000',
  },
}
SCSS
$custom: #8942ba;
$custom-light: #af7bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8942ba",
  "rgb": {
    "r": 137,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 275.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52566,
    "c": 0.18537,
    "h": 308.5
  },
  "luminance": 0.1276
}

Semantic roles & 50–950 ramp

primary
#8942BA
secondary
#A7C890
accent
#D75188
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8942BA

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

Preview Lab → · Contrast checker → · Palette generator →

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