#942EB3#942EB3

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

Color values

HEX#942EB3
RGBrgb(148, 46, 179)
HSLhsl(286, 59%, 44%)
HSVhsv(286, 74%, 70%)
CMYKcmyk(17.3%, 74.3%, 0%, 29.8%)
CIE-LABlab(40.42, 60.64, -50.29)
CIE-LCHlch(40.42, 78.78, 320.33°)
OKLaboklab(51.32% 0.1516 -0.1415)
OKLCHoklch(51.32% 0.207 317)
XYZxyz(21.3252, 11.5055, 43.7366)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EB3 #4DB32E
analogous
#522EB3 #942EB3 #B32E90
triadic
#942EB3 #B3942E #2EB394
tetradic
#942EB3 #B3522E #4DB32E #2E90B3
square
#942EB3 #B3522E #4DB32E #2E90B3
split-complementary
#942EB3 #90B32E #2EB352
monochromatic
#431552 #6C2182 #942EB3 #B24DD1 #C77EDE

Accessibility & contrast

On white

6.36
#942EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#942EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EB3
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EB3#FFFFFF#000000##FFFFFF
##942EB31.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#924A6E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942eb3;
/* rgb */ color: rgb(148, 46, 179);
/* oklch */ color: oklch(51.3% 0.207 317.0);
Tailwind
colors: {
  custom: {
    50: '#b771ca',
    500: '#942eb3',
    950: '#000000',
  },
}
SCSS
$custom: #942eb3;
$custom-light: #b771ca;
$custom-dark: #000000;
JSON
{
  "hex": "#942eb3",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 286.015,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51324,
    "c": 0.2074,
    "h": 317
  },
  "luminance": 0.11505
}

Semantic roles & 50–950 ramp

primary
#942EB3
secondary
#89C676
accent
#E2466A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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