#942FA8#942FA8

#942FA8 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.197 H 320.5°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#942FA8
RGBrgb(148, 47, 168)
HSLhsl(290, 56%, 42%)
HSVhsv(290, 72%, 66%)
CMYKcmyk(11.9%, 72%, 0%, 34.1%)
CIE-LABlab(39.84, 58.15, -44.68)
CIE-LCHlch(39.84, 73.33, 322.46°)
OKLaboklab(50.69% 0.1516 -0.1251)
OKLCHoklch(50.69% 0.197 320.5)
XYZxyz(20.2963, 11.1571, 38.1227)
Luminance0.1116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FA8 #43A82F
analogous
#582FA8 #942FA8 #A82F7F
triadic
#942FA8 #A8942F #2FA894
tetradic
#942FA8 #A8582F #43A82F #2F7FA8
square
#942FA8 #A8582F #43A82F #2F7FA8
split-complementary
#942FA8 #7FA82F #2FA858
monochromatic
#401448 #6A2278 #942FA8 #B648CC #C978D9

Accessibility & contrast

On white

6.50
#942FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#942FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FA8
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FA8#FFFFFF#000000##FFFFFF
##942FA81.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#3B61A5
Tritanopia (blue-blind)
#954669
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942fa8;
/* rgb */ color: rgb(148, 47, 168);
/* oklch */ color: oklch(50.7% 0.197 320.5);
Tailwind
colors: {
  custom: {
    50: '#b771c2',
    500: '#942fa8',
    950: '#000000',
  },
}
SCSS
$custom: #942fa8;
$custom-light: #b771c2;
$custom-dark: #000000;
JSON
{
  "hex": "#942fa8",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 290.083,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50689,
    "c": 0.19657,
    "h": 320.5
  },
  "luminance": 0.11156
}

Semantic roles & 50–950 ramp

primary
#942FA8
secondary
#7FC171
accent
#E04861
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #942FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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