#8942D2#8942D2

#8942D2 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.211 H 302.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8942D2
RGBrgb(137, 66, 210)
HSLhsl(270, 62%, 54%)
HSVhsv(270, 69%, 82%)
CMYKcmyk(34.8%, 68.6%, 0%, 17.6%)
CIE-LABlab(44.04, 56.76, -62.58)
CIE-LCHlch(44.04, 84.49, 312.21°)
OKLaboklab(54.27% 0.1131 -0.1781)
OKLCHoklch(54.27% 0.211 302.4)
XYZxyz(23.8949, 13.8679, 62.3782)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8942D2 #8BD242
analogous
#4243D2 #8942D2 #D142D2
triadic
#8942D2 #D28942 #42D289
tetradic
#8942D2 #D24243 #8BD242 #42D2D1
square
#8942D2 #D24243 #8BD242 #42D2D1
split-complementary
#8942D2 #D2D142 #43D242
monochromatic
#4C1E7C #6A29AD #8942D2 #A873DE #C7A5EA

Accessibility & contrast

On white

5.56
#8942D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8942D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8942D2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8942D2#FFFFFF#000000##FFFFFF
##8942D21.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#7A6485
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8942d2;
/* rgb */ color: rgb(137, 66, 210);
/* oklch */ color: oklch(54.3% 0.211 302.4);
Tailwind
colors: {
  custom: {
    50: '#b17ce1',
    500: '#8942d2',
    950: '#000000',
  },
}
SCSS
$custom: #8942d2;
$custom-light: #b17ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#8942d2",
  "rgb": {
    "r": 137,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 269.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54266,
    "c": 0.21096,
    "h": 302.4
  },
  "luminance": 0.13868
}

Semantic roles & 50–950 ramp

primary
#8942D2
secondary
#B8D799
accent
#E54395
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8942D2

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

Preview Lab → · Contrast checker → · Palette generator →

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