#8942CB#8942CB

#8942CB is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.204 H 304.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8942CB
RGBrgb(137, 66, 203)
HSLhsl(271, 57%, 53%)
HSVhsv(271, 67%, 80%)
CMYKcmyk(32.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(43.55, 55.10, -59.35)
CIE-LCHlch(43.55, 80.99, 312.87°)
OKLaboklab(53.75% 0.114 -0.1686)
OKLCHoklch(53.75% 0.204 304.1)
XYZxyz(23.0418, 13.5267, 57.8853)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8942CB #84CB42
analogous
#4542CB #8942CB #CB42C8
triadic
#8942CB #CB8942 #42CB89
tetradic
#8942CB #CB4542 #84CB42 #42C8CB
square
#8942CB #CB4542 #84CB42 #42C8CB
split-complementary
#8942CB #C8CB42 #42CB45
monochromatic
#4B2073 #6A2DA3 #8942CB #A772D8 #C5A2E5

Accessibility & contrast

On white

5.67
#8942CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8942CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8942CB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8942CB#FFFFFF#000000##FFFFFF
##8942CB1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0967C8
Tritanopia (blue-blind)
#7C6181
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8942cb;
/* rgb */ color: rgb(137, 66, 203);
/* oklch */ color: oklch(53.8% 0.204 304.1);
Tailwind
colors: {
  custom: {
    50: '#b07bdc',
    500: '#8942cb',
    950: '#000000',
  },
}
SCSS
$custom: #8942cb;
$custom-light: #b07bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8942cb",
  "rgb": {
    "r": 137,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 271.095,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53754,
    "c": 0.20352,
    "h": 304.1
  },
  "luminance": 0.13527
}

Semantic roles & 50–950 ramp

primary
#8942CB
secondary
#B3D297
accent
#E04891
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8942CB

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

Preview Lab → · Contrast checker → · Palette generator →

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