#942EBD#942EBD

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

Color values

HEX#942EBD
RGBrgb(148, 46, 189)
HSLhsl(283, 61%, 46%)
HSVhsv(283, 76%, 74%)
CMYKcmyk(21.7%, 75.7%, 0%, 25.9%)
CIE-LABlab(41.10, 62.62, -55.09)
CIE-LCHlch(41.10, 83.40, 318.66°)
OKLaboklab(52.02% 0.1502 -0.1556)
OKLCHoklch(52.02% 0.216 314)
XYZxyz(22.3735, 11.9248, 49.2574)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EBD #57BD2E
analogous
#4C2EBD #942EBD #BD2E9E
triadic
#942EBD #BD942E #2EBD94
tetradic
#942EBD #BD4C2E #57BD2E #2E9EBD
square
#942EBD #BD4C2E #57BD2E #2E9EBD
split-complementary
#942EBD #9EBD2E #2EBD4C
monochromatic
#47165B #6D228C #942EBD #B053D5 #C784E1

Accessibility & contrast

On white

6.20
#942EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #942EBD
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EBD#FFFFFF#000000##FFFFFF
##942EBD1.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#2263BA
Tritanopia (blue-blind)
#904F74
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942ebd;
/* rgb */ color: rgb(148, 46, 189);
/* oklch */ color: oklch(52.0% 0.216 314.0);
Tailwind
colors: {
  custom: {
    50: '#b872d2',
    500: '#942ebd',
    950: '#000000',
  },
}
SCSS
$custom: #942ebd;
$custom-light: #b872d2;
$custom-dark: #000000;
JSON
{
  "hex": "#942ebd",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 282.797,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52018,
    "c": 0.21629,
    "h": 314
  },
  "luminance": 0.11924
}

Semantic roles & 50–950 ramp

primary
#942EBD
secondary
#93CA7C
accent
#E44472
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #942EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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