#942C8A#942C8A

#942C8A is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.175 H 332.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#942C8A
RGBrgb(148, 44, 138)
HSLhsl(306, 54%, 38%)
HSVhsv(306, 70%, 58%)
CMYKcmyk(0%, 70.3%, 6.8%, 42%)
CIE-LABlab(37.72, 53.97, -29.88)
CIE-LCHlch(37.72, 61.69, 331.03°)
OKLaboklab(48.61% 0.1547 -0.0821)
OKLCHoklch(48.61% 0.175 332.1)
XYZxyz(17.7009, 9.9336, 25.0249)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942C8A #2C9436
analogous
#6A2C94 #942C8A #942C56
triadic
#942C8A #8A942C #2C8A94
tetradic
#942C8A #946A2C #2C9436 #2C5694
square
#942C8A #946A2C #2C9436 #2C5694
split-complementary
#942C8A #56942C #2C946A
monochromatic
#361032 #651E5E #942C8A #C33AB6 #D268C8

Accessibility & contrast

On white

7.03
#942C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#942C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942C8A
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942C8A#FFFFFF#000000##FFFFFF
##942C8A1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8D
Deuteranopia (green-blind)
#4C5E87
Tritanopia (blue-blind)
#9A3757
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #942c8a;
/* rgb */ color: rgb(148, 44, 138);
/* oklch */ color: oklch(48.6% 0.175 332.1);
Tailwind
colors: {
  custom: {
    50: '#b76fac',
    500: '#942c8a',
    950: '#000000',
  },
}
SCSS
$custom: #942c8a;
$custom-light: #b76fac;
$custom-dark: #000000;
JSON
{
  "hex": "#942c8a",
  "rgb": {
    "r": 148,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 305.769,
    "s": 54.167,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48612,
    "c": 0.17514,
    "h": 332.1
  },
  "luminance": 0.09932
}

Semantic roles & 50–950 ramp

primary
#942C8A
secondary
#63B96B
accent
#DE584A
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #942C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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