#942EB7#942EB7

#942EB7 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.211 H 315.8°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#942EB7
RGBrgb(148, 46, 183)
HSLhsl(285, 60%, 45%)
HSVhsv(285, 75%, 72%)
CMYKcmyk(19.1%, 74.9%, 0%, 28.2%)
CIE-LABlab(40.69, 61.42, -52.23)
CIE-LCHlch(40.69, 80.62, 319.63°)
OKLaboklab(51.6% 0.1511 -0.1472)
OKLCHoklch(51.6% 0.211 315.8)
XYZxyz(21.7356, 11.6696, 45.8981)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EB7 #51B72E
analogous
#502EB7 #942EB7 #B72E95
triadic
#942EB7 #B7942E #2EB794
tetradic
#942EB7 #B7502E #51B72E #2E95B7
square
#942EB7 #B7502E #51B72E #2E95B7
split-complementary
#942EB7 #95B72E #2EB750
monochromatic
#451555 #6C2286 #942EB7 #B14FD3 #C780DF

Accessibility & contrast

On white

6.30
#942EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#942EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EB7
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EB7#FFFFFF#000000##FFFFFF
##942EB71.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #942eb7;
/* rgb */ color: rgb(148, 46, 183);
/* oklch */ color: oklch(51.6% 0.211 315.8);
Tailwind
colors: {
  custom: {
    50: '#b871cd',
    500: '#942eb7',
    950: '#000000',
  },
}
SCSS
$custom: #942eb7;
$custom-light: #b871cd;
$custom-dark: #000000;
JSON
{
  "hex": "#942eb7",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 284.672,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51598,
    "c": 0.21096,
    "h": 315.8
  },
  "luminance": 0.11669
}

Semantic roles & 50–950 ramp

primary
#942EB7
secondary
#8DC879
accent
#E3456D
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #942EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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