#942FB2#942FB2

#942FB2 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.3% C 0.205 H 317.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#942FB2
RGBrgb(148, 47, 178)
HSLhsl(286, 58%, 44%)
HSVhsv(286, 74%, 70%)
CMYKcmyk(16.9%, 73.6%, 0%, 30.2%)
CIE-LABlab(40.48, 60.07, -49.60)
CIE-LCHlch(40.48, 77.90, 320.46°)
OKLaboklab(51.35% 0.1508 -0.1395)
OKLCHoklch(51.35% 0.205 317.2)
XYZxyz(21.2640, 11.5442, 43.2190)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FB2 #4DB22F
analogous
#532FB2 #942FB2 #B22F8F
triadic
#942FB2 #B2942F #2FB294
tetradic
#942FB2 #B2532F #4DB22F #2F8FB2
square
#942FB2 #B2532F #4DB22F #2F8FB2
split-complementary
#942FB2 #8FB22F #2FB253
monochromatic
#431551 #6C2282 #942FB2 #B24ED0 #C77EDD

Accessibility & contrast

On white

6.35
#942FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#942FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FB2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FB2#FFFFFF#000000##FFFFFF
##942FB21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#3262AF
Tritanopia (blue-blind)
#934A6E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942fb2;
/* rgb */ color: rgb(148, 47, 178);
/* oklch */ color: oklch(51.3% 0.205 317.2);
Tailwind
colors: {
  custom: {
    50: '#b772ca',
    500: '#942fb2',
    950: '#000000',
  },
}
SCSS
$custom: #942fb2;
$custom-light: #b772ca;
$custom-dark: #000000;
JSON
{
  "hex": "#942fb2",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 286.26,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51348,
    "c": 0.20541,
    "h": 317.2
  },
  "luminance": 0.11543
}

Semantic roles & 50–950 ramp

primary
#942FB2
secondary
#89C677
accent
#E1466A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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