#942DBF#942DBF

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

Color values

HEX#942DBF
RGBrgb(148, 45, 191)
HSLhsl(282, 62%, 46%)
HSVhsv(282, 76%, 75%)
CMYKcmyk(22.5%, 76.4%, 0%, 25.1%)
CIE-LABlab(41.11, 63.37, -56.24)
CIE-LCHlch(41.11, 84.73, 318.41°)
OKLaboklab(52.07% 0.1508 -0.159)
OKLCHoklch(52.07% 0.219 313.5)
XYZxyz(22.5534, 11.9350, 50.3957)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DBF #58BF2D
analogous
#4B2DBF #942DBF #BF2DA1
triadic
#942DBF #BF942D #2DBF94
tetradic
#942DBF #BF4B2D #58BF2D #2DA1BF
square
#942DBF #BF4B2D #58BF2D #2DA1BF
split-complementary
#942DBF #A1BF2D #2DBF4B
monochromatic
#47165C #6E218D #942DBF #B053D6 #C684E2

Accessibility & contrast

On white

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

On black

3.39
#942DBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##942DBF#FFFFFF#000000##FFFFFF
##942DBF1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#1D63BC
Tritanopia (blue-blind)
#8F4F75
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942dbf;
/* rgb */ color: rgb(148, 45, 191);
/* oklch */ color: oklch(52.1% 0.219 313.5);
Tailwind
colors: {
  custom: {
    50: '#b871d3',
    500: '#942dbf',
    950: '#000000',
  },
}
SCSS
$custom: #942dbf;
$custom-light: #b871d3;
$custom-dark: #000000;
JSON
{
  "hex": "#942dbf",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 191
  },
  "hsl": {
    "h": 282.329,
    "s": 61.864,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52074,
    "c": 0.2191,
    "h": 313.5
  },
  "luminance": 0.11934
}

Semantic roles & 50–950 ramp

primary
#942DBF
secondary
#94CB7C
accent
#E54373
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #942DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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