#942FBA#942FBA

#942FBA is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.213 H 314.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#942FBA
RGBrgb(148, 47, 186)
HSLhsl(284, 60%, 46%)
HSVhsv(284, 75%, 73%)
CMYKcmyk(20.4%, 74.7%, 0%, 27.1%)
CIE-LABlab(41.02, 61.66, -53.46)
CIE-LCHlch(41.02, 81.60, 319.07°)
OKLaboklab(51.9% 0.1498 -0.1508)
OKLCHoklch(51.9% 0.213 314.8)
XYZxyz(22.0907, 11.8749, 47.5733)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FBA #55BA2F
analogous
#4E2FBA #942FBA #BA2F9A
triadic
#942FBA #BA942F #2FBA94
tetradic
#942FBA #BA4E2F #55BA2F #2F9ABA
square
#942FBA #BA4E2F #55BA2F #2F9ABA
split-complementary
#942FBA #9ABA2F #2FBA4E
monochromatic
#461658 #6D2389 #942FBA #B053D3 #C784E0

Accessibility & contrast

On white

6.22
#942FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#942FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FBA
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FBA#FFFFFF#000000##FFFFFF
##942FBA1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#2863B7
Tritanopia (blue-blind)
#914E73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #942fba;
/* rgb */ color: rgb(148, 47, 186);
/* oklch */ color: oklch(51.9% 0.213 314.8);
Tailwind
colors: {
  custom: {
    50: '#b872cf',
    500: '#942fba',
    950: '#000000',
  },
}
SCSS
$custom: #942fba;
$custom-light: #b872cf;
$custom-dark: #000000;
JSON
{
  "hex": "#942fba",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 283.597,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51897,
    "c": 0.21256,
    "h": 314.8
  },
  "luminance": 0.11874
}

Semantic roles & 50–950 ramp

primary
#942FBA
secondary
#91C97C
accent
#E34570
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #942FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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