#942E8A#942E8A

#942E8A is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.8% C 0.173 H 332.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#942E8A
RGBrgb(148, 46, 138)
HSLhsl(306, 53%, 38%)
HSVhsv(306, 69%, 58%)
CMYKcmyk(0%, 68.9%, 6.8%, 42%)
CIE-LABlab(38.00, 53.20, -29.45)
CIE-LCHlch(38.00, 60.81, 331.03°)
OKLaboklab(48.81% 0.1525 -0.0808)
OKLCHoklch(48.81% 0.173 332.1)
XYZxyz(17.7772, 10.0863, 25.0504)
Luminance0.1008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942E8A #2E9438
analogous
#6B2E94 #942E8A #942E57
triadic
#942E8A #8A942E #2E8A94
tetradic
#942E8A #946B2E #2E9438 #2E5794
square
#942E8A #946B2E #2E9438 #2E5794
split-complementary
#942E8A #57942E #2E946B
monochromatic
#371133 #651F5E #942E8A #C33DB5 #D16BC7

Accessibility & contrast

On white

6.96
#942E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#942E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942E8A
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942E8A#FFFFFF#000000##FFFFFF
##942E8A1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29508D
Deuteranopia (green-blind)
#4D5F87
Tritanopia (blue-blind)
#9A3858
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #942e8a;
/* rgb */ color: rgb(148, 46, 138);
/* oklch */ color: oklch(48.8% 0.173 332.1);
Tailwind
colors: {
  custom: {
    50: '#b770ac',
    500: '#942e8a',
    950: '#000000',
  },
}
SCSS
$custom: #942e8a;
$custom-light: #b770ac;
$custom-dark: #000000;
JSON
{
  "hex": "#942e8a",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 305.882,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4881,
    "c": 0.17259,
    "h": 332.1
  },
  "luminance": 0.10085
}

Semantic roles & 50–950 ramp

primary
#942E8A
secondary
#66B86E
accent
#DC5A4C
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #942E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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