#942FB7#942FB7

#942FB7 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.210 H 315.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#942FB7
RGBrgb(148, 47, 183)
HSLhsl(285, 59%, 45%)
HSVhsv(285, 74%, 72%)
CMYKcmyk(19.1%, 74.3%, 0%, 28.2%)
CIE-LABlab(40.81, 61.06, -52.02)
CIE-LCHlch(40.81, 80.21, 319.57°)
OKLaboklab(51.69% 0.1502 -0.1466)
OKLCHoklch(51.69% 0.21 315.7)
XYZxyz(21.7751, 11.7487, 45.9113)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FB7 #52B72F
analogous
#502FB7 #942FB7 #B72F96
triadic
#942FB7 #B7942F #2FB794
tetradic
#942FB7 #B7502F #52B72F #2F96B7
square
#942FB7 #B7502F #52B72F #2F96B7
split-complementary
#942FB7 #96B72F #2FB750
monochromatic
#451656 #6D2286 #942FB7 #B151D2 #C782DF

Accessibility & contrast

On white

6.27
#942FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#942FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FB7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FB7#FFFFFF#000000##FFFFFF
##942FB71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#2C63B4
Tritanopia (blue-blind)
#914C71
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942fb7;
/* rgb */ color: rgb(148, 47, 183);
/* oklch */ color: oklch(51.7% 0.210 315.7);
Tailwind
colors: {
  custom: {
    50: '#b872cd',
    500: '#942fb7',
    950: '#000000',
  },
}
SCSS
$custom: #942fb7;
$custom-light: #b872cd;
$custom-dark: #000000;
JSON
{
  "hex": "#942fb7",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 284.559,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51689,
    "c": 0.20987,
    "h": 315.7
  },
  "luminance": 0.11748
}

Semantic roles & 50–950 ramp

primary
#942FB7
secondary
#8EC87A
accent
#E2456E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #942FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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