#942E87#942E87

#942E87 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.6% C 0.170 H 333.4°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#942E87
RGBrgb(148, 46, 135)
HSLhsl(308, 53%, 38%)
HSVhsv(308, 69%, 58%)
CMYKcmyk(0%, 68.9%, 8.8%, 42%)
CIE-LABlab(37.84, 52.71, -27.85)
CIE-LCHlch(37.84, 59.61, 332.15°)
OKLaboklab(48.65% 0.1522 -0.0762)
OKLCHoklch(48.65% 0.17 333.4)
XYZxyz(17.5630, 10.0006, 23.9223)
Luminance0.1000 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942E87 #2E943B
analogous
#6E2E94 #942E87 #942E54
triadic
#942E87 #87942E #2E8794
tetradic
#942E87 #946E2E #2E943B #2E5494
square
#942E87 #946E2E #2E943B #2E5494
split-complementary
#942E87 #54942E #2E946E
monochromatic
#371132 #651F5C #942E87 #C33DB2 #D16BC4

Accessibility & contrast

On white

7.00
#942E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#942E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942E87
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942E87#FFFFFF#000000##FFFFFF
##942E871.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B508A
Deuteranopia (green-blind)
#4E5E84
Tritanopia (blue-blind)
#9B3756
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #942e87;
/* rgb */ color: rgb(148, 46, 135);
/* oklch */ color: oklch(48.6% 0.170 333.4);
Tailwind
colors: {
  custom: {
    50: '#b770aa',
    500: '#942e87',
    950: '#000000',
  },
}
SCSS
$custom: #942e87;
$custom-light: #b770aa;
$custom-dark: #000000;
JSON
{
  "hex": "#942e87",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 307.647,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48649,
    "c": 0.17024,
    "h": 333.4
  },
  "luminance": 0.09999
}

Semantic roles & 50–950 ramp

primary
#942E87
secondary
#66B870
accent
#DC5E4C
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #942E87

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

Preview Lab → · Contrast checker → · Palette generator →

#942E87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva