#942FB8#942FB8

#942FB8 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.211 H 315.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#942FB8
RGBrgb(148, 47, 184)
HSLhsl(284, 59%, 45%)
HSVhsv(284, 74%, 72%)
CMYKcmyk(19.6%, 74.5%, 0%, 27.8%)
CIE-LABlab(40.88, 61.26, -52.50)
CIE-LCHlch(40.88, 80.68, 319.40°)
OKLaboklab(51.76% 0.1501 -0.148)
OKLCHoklch(51.76% 0.211 315.4)
XYZxyz(21.8796, 11.7904, 46.4614)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FB8 #53B82F
analogous
#502FB8 #942FB8 #B82F97
triadic
#942FB8 #B8942F #2FB894
tetradic
#942FB8 #B8502F #53B82F #2F97B8
square
#942FB8 #B8502F #53B82F #2F97B8
split-complementary
#942FB8 #97B82F #2FB850
monochromatic
#461657 #6D2387 #942FB8 #B152D3 #C782DF

Accessibility & contrast

On white

6.25
#942FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#942FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FB8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FB8#FFFFFF#000000##FFFFFF
##942FB81.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#2B63B5
Tritanopia (blue-blind)
#914D72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942fb8;
/* rgb */ color: rgb(148, 47, 184);
/* oklch */ color: oklch(51.8% 0.211 315.4);
Tailwind
colors: {
  custom: {
    50: '#b872ce',
    500: '#942fb8',
    950: '#000000',
  },
}
SCSS
$custom: #942fb8;
$custom-light: #b872ce;
$custom-dark: #000000;
JSON
{
  "hex": "#942fb8",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 284.234,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51758,
    "c": 0.21077,
    "h": 315.4
  },
  "luminance": 0.1179
}

Semantic roles & 50–950 ramp

primary
#942FB8
secondary
#8FC87B
accent
#E2456F
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #942FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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