#942FB3#942FB3

#942FB3 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.4% C 0.206 H 316.9°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#942FB3
RGBrgb(148, 47, 179)
HSLhsl(286, 58%, 44%)
HSVhsv(286, 74%, 70%)
CMYKcmyk(17.3%, 73.7%, 0%, 29.8%)
CIE-LABlab(40.55, 60.27, -50.09)
CIE-LCHlch(40.55, 78.36, 320.27°)
OKLaboklab(51.42% 0.1507 -0.1409)
OKLCHoklch(51.42% 0.206 316.9)
XYZxyz(21.3647, 11.5845, 43.7497)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FB3 #4EB32F
analogous
#522FB3 #942FB3 #B32F90
triadic
#942FB3 #B3942F #2FB394
tetradic
#942FB3 #B3522F #4EB32F #2F90B3
square
#942FB3 #B3522F #4EB32F #2F90B3
split-complementary
#942FB3 #90B32F #2FB352
monochromatic
#441652 #6C2283 #942FB3 #B24FD1 #C77FDD

Accessibility & contrast

On white

6.33
#942FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#942FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FB3
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FB3#FFFFFF#000000##FFFFFF
##942FB31.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#3162B0
Tritanopia (blue-blind)
#924B6F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942fb3;
/* rgb */ color: rgb(148, 47, 179);
/* oklch */ color: oklch(51.4% 0.206 316.9);
Tailwind
colors: {
  custom: {
    50: '#b772ca',
    500: '#942fb3',
    950: '#000000',
  },
}
SCSS
$custom: #942fb3;
$custom-light: #b772ca;
$custom-dark: #000000;
JSON
{
  "hex": "#942fb3",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 285.909,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51416,
    "c": 0.2063,
    "h": 316.9
  },
  "luminance": 0.11584
}

Semantic roles & 50–950 ramp

primary
#942FB3
secondary
#8AC678
accent
#E2466B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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