#942E8B#942E8B

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

Color values

HEX#942E8B
RGBrgb(148, 46, 139)
HSLhsl(305, 53%, 38%)
HSVhsv(305, 69%, 58%)
CMYKcmyk(0%, 68.9%, 6.1%, 42%)
CIE-LABlab(38.05, 53.36, -29.98)
CIE-LCHlch(38.05, 61.21, 330.67°)
OKLaboklab(48.86% 0.1526 -0.0824)
OKLCHoklch(48.86% 0.173 331.6)
XYZxyz(17.8499, 10.1154, 25.4334)
Luminance0.1011 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942E8B #2E9437
analogous
#6A2E94 #942E8B #942E58
triadic
#942E8B #8B942E #2E8B94
tetradic
#942E8B #946A2E #2E9437 #2E5894
square
#942E8B #946A2E #2E9437 #2E5894
split-complementary
#942E8B #58942E #2E946A
monochromatic
#371133 #651F5F #942E8B #C33DB7 #D16BC8

Accessibility & contrast

On white

6.95
#942E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #942E8B
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942E8B#FFFFFF#000000##FFFFFF
##942E8B1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#9A3959
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #942e8b;
/* rgb */ color: rgb(148, 46, 139);
/* oklch */ color: oklch(48.9% 0.173 331.6);
Tailwind
colors: {
  custom: {
    50: '#b770ad',
    500: '#942e8b',
    950: '#000000',
  },
}
SCSS
$custom: #942e8b;
$custom-light: #b770ad;
$custom-dark: #000000;
JSON
{
  "hex": "#942e8b",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 305.294,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48865,
    "c": 0.17339,
    "h": 331.6
  },
  "luminance": 0.10114
}

Semantic roles & 50–950 ramp

primary
#942E8B
secondary
#66B86D
accent
#DC594C
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #942E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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