#942A97#942A97

#942A97 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.188 H 326.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#942A97
RGBrgb(148, 42, 151)
HSLhsl(298, 56%, 38%)
HSVhsv(298, 72%, 59%)
CMYKcmyk(2%, 72.2%, 0%, 40.8%)
CIE-LABlab(38.18, 56.90, -37.10)
CIE-LCHlch(38.18, 67.93, 326.89°)
OKLaboklab(49.17% 0.1573 -0.1029)
OKLCHoklch(49.17% 0.188 326.8)
XYZxyz(18.6263, 10.1875, 30.2575)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942A97 #2D972A
analogous
#5E2A97 #942A97 #972A63
triadic
#942A97 #97942A #2A9794
tetradic
#942A97 #975E2A #2D972A #2A6397
square
#942A97 #975E2A #2D972A #2A6397
split-complementary
#942A97 #63972A #2A975E
monochromatic
#360F37 #651D67 #942A97 #C337C7 #D267D5

Accessibility & contrast

On white

6.91
#942A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#942A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942A97
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942A97#FFFFFF#000000##FFFFFF
##942A971.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#445F94
Tritanopia (blue-blind)
#983B5E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #942a97;
/* rgb */ color: rgb(148, 42, 151);
/* oklch */ color: oklch(49.2% 0.188 326.8);
Tailwind
colors: {
  custom: {
    50: '#b76eb6',
    500: '#942a97',
    950: '#000000',
  },
}
SCSS
$custom: #942a97;
$custom-light: #b76eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#942a97",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 298.349,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4917,
    "c": 0.18798,
    "h": 326.8
  },
  "luminance": 0.10186
}

Semantic roles & 50–950 ramp

primary
#942A97
secondary
#64BB62
accent
#E0484C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #942A97

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

Preview Lab → · Contrast checker → · Palette generator →

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