#942F8A#942F8A

#942F8A is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.9% C 0.171 H 332.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#942F8A
RGBrgb(148, 47, 138)
HSLhsl(306, 52%, 38%)
HSVhsv(306, 68%, 58%)
CMYKcmyk(0%, 68.2%, 6.8%, 42%)
CIE-LABlab(38.14, 52.80, -29.23)
CIE-LCHlch(38.14, 60.35, 331.03°)
OKLaboklab(48.91% 0.1514 -0.0802)
OKLCHoklch(48.91% 0.171 332.1)
XYZxyz(17.8167, 10.1653, 25.0635)
Luminance0.1016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942F8A #2F9439
analogous
#6B2F94 #942F8A #942F57
triadic
#942F8A #8A942F #2F8A94
tetradic
#942F8A #946B2F #2F9439 #2F5794
square
#942F8A #946B2F #2F9439 #2F5794
split-complementary
#942F8A #57942F #2F946B
monochromatic
#371133 #66205F #942F8A #C23EB5 #D16DC7

Accessibility & contrast

On white

6.92
#942F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#942F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942F8A
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942F8A#FFFFFF#000000##FFFFFF
##942F8A1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#4E5F87
Tritanopia (blue-blind)
#9A3958
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #942f8a;
/* rgb */ color: rgb(148, 47, 138);
/* oklch */ color: oklch(48.9% 0.171 332.1);
Tailwind
colors: {
  custom: {
    50: '#b670ac',
    500: '#942f8a',
    950: '#000000',
  },
}
SCSS
$custom: #942f8a;
$custom-light: #b670ac;
$custom-dark: #000000;
JSON
{
  "hex": "#942f8a",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 305.941,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.48912,
    "c": 0.17129,
    "h": 332.1
  },
  "luminance": 0.10164
}

Semantic roles & 50–950 ramp

primary
#942F8A
secondary
#67B86F
accent
#DB5B4D
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #942F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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