#942FBB#942FBB

#942FBB is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.213 H 314.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#942FBB
RGBrgb(148, 47, 187)
HSLhsl(283, 60%, 46%)
HSVhsv(283, 75%, 73%)
CMYKcmyk(20.9%, 74.9%, 0%, 26.7%)
CIE-LABlab(41.08, 61.86, -53.94)
CIE-LCHlch(41.08, 82.07, 318.91°)
OKLaboklab(51.97% 0.1496 -0.1522)
OKLCHoklch(51.97% 0.213 314.5)
XYZxyz(22.1974, 11.9176, 48.1351)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FBB #56BB2F
analogous
#4E2FBB #942FBB #BB2F9C
triadic
#942FBB #BB942F #2FBB94
tetradic
#942FBB #BB4E2F #56BB2F #2F9CBB
square
#942FBB #BB4E2F #56BB2F #2F9CBB
split-complementary
#942FBB #9CBB2F #2FBB4E
monochromatic
#471659 #6D238A #942FBB #B053D4 #C784E0

Accessibility & contrast

On white

6.21
#942FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#942FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FBB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FBB#FFFFFF#000000##FFFFFF
##942FBB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#2763B8
Tritanopia (blue-blind)
#904E73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942fbb;
/* rgb */ color: rgb(148, 47, 187);
/* oklch */ color: oklch(52.0% 0.213 314.5);
Tailwind
colors: {
  custom: {
    50: '#b872d0',
    500: '#942fbb',
    950: '#000000',
  },
}
SCSS
$custom: #942fbb;
$custom-light: #b872d0;
$custom-dark: #000000;
JSON
{
  "hex": "#942fbb",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 283.286,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51967,
    "c": 0.21345,
    "h": 314.5
  },
  "luminance": 0.11917
}

Semantic roles & 50–950 ramp

primary
#942FBB
secondary
#92C97C
accent
#E34571
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #942FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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