#942FBE#942FBE

#942FBE is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.2% C 0.216 H 313.6°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#942FBE
RGBrgb(148, 47, 190)
HSLhsl(282, 60%, 46%)
HSVhsv(282, 75%, 75%)
CMYKcmyk(22.1%, 75.3%, 0%, 25.5%)
CIE-LABlab(41.29, 62.46, -55.36)
CIE-LCHlch(41.29, 83.46, 318.45°)
OKLaboklab(52.18% 0.1492 -0.1564)
OKLCHoklch(52.18% 0.216 313.6)
XYZxyz(22.5219, 12.0474, 49.8442)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FBE #59BE2F
analogous
#4D2FBE #942FBE #BE2FA1
triadic
#942FBE #BE942F #2FBE94
tetradic
#942FBE #BE4D2F #59BE2F #2FA1BE
square
#942FBE #BE4D2F #59BE2F #2FA1BE
split-complementary
#942FBE #A1BE2F #2FBE4D
monochromatic
#48175C #6E238D #942FBE #AF55D5 #C686E1

Accessibility & contrast

On white

6.16
#942FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#942FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FBE
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FBE#FFFFFF#000000##FFFFFF
##942FBE1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC2
Deuteranopia (green-blind)
#2264BB
Tritanopia (blue-blind)
#905075
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942fbe;
/* rgb */ color: rgb(148, 47, 190);
/* oklch */ color: oklch(52.2% 0.216 313.6);
Tailwind
colors: {
  custom: {
    50: '#b872d2',
    500: '#942fbe',
    950: '#000000',
  },
}
SCSS
$custom: #942fbe;
$custom-light: #b872d2;
$custom-dark: #000000;
JSON
{
  "hex": "#942fbe",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 282.378,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52178,
    "c": 0.21614,
    "h": 313.6
  },
  "luminance": 0.12047
}

Semantic roles & 50–950 ramp

primary
#942FBE
secondary
#95CB7E
accent
#E34473
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #942FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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